summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-02-27 13:26:06 -0700
committerSimon Glass <sjg@chromium.org>2014-03-17 20:05:46 -0600
commit1c266b9214cc87307b1201d51efab22bda14fb8e (patch)
treeedf0dacdab39b20c5a5e244ba39a0aae20743868 /drivers/misc
parente0dd81e3aaffa58bd45a932c4cd1511cb491714a (diff)
downloadtalos-obmc-uboot-1c266b9214cc87307b1201d51efab22bda14fb8e.tar.gz
talos-obmc-uboot-1c266b9214cc87307b1201d51efab22bda14fb8e.zip
cros_ec: Move #ifdef to permit flash region access
Flash region access is not tied to having commands, so adjust the #ifdef to reflect this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/cros_ec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index f95bfe7390..1cb879cb51 100644
--- a/drivers/misc/cros_ec.c
+++ b/drivers/misc/cros_ec.c
@@ -932,7 +932,6 @@ int cros_ec_init(const void *blob, struct cros_ec_dev **cros_ecp)
return 0;
}
-#ifdef CONFIG_CMD_CROS_EC
int cros_ec_decode_region(int argc, char * const argv[])
{
if (argc > 0) {
@@ -999,6 +998,8 @@ int cros_ec_decode_ec_flash(const void *blob, struct fdt_cros_ec *config)
return 0;
}
+#ifdef CONFIG_CMD_CROS_EC
+
/**
* Perform a flash read or write command
*
OpenPOWER on IntegriCloud