]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cros_ec: Move #ifdef to permit flash region access
authorSimon Glass <sjg@chromium.org>
Thu, 27 Feb 2014 20:26:06 +0000 (13:26 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Mar 2014 02:05:46 +0000 (20:05 -0600)
Flash region access is not tied to having commands, so adjust the #ifdef
to reflect this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec.c

index f95bfe73900f9a418061bcadd0eef2fbc918402b..1cb879cb5111f747586e834751b57a7a4617a777 100644 (file)
@@ -932,7 +932,6 @@ int cros_ec_init(const void *blob, struct cros_ec_dev **cros_ecp)
        return 0;
 }
 
        return 0;
 }
 
-#ifdef CONFIG_CMD_CROS_EC
 int cros_ec_decode_region(int argc, char * const argv[])
 {
        if (argc > 0) {
 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;
 }
 
        return 0;
 }
 
+#ifdef CONFIG_CMD_CROS_EC
+
 /**
  * Perform a flash read or write command
  *
 /**
  * Perform a flash read or write command
  *