From: Simon Glass Date: Thu, 27 Feb 2014 13:26:06 -0700 Subject: [U-Boot] [PATCH v2 12/31] cros_ec: Move #ifdef to permit flash region access In-Reply-To: <1393532785-9020-1-git-send-email-sjg@chromium.org> References: <1393532785-9020-1-git-send-email-sjg@chromium.org> Message-ID: <1393532785-9020-13-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Flash region access is not tied to having commands, so adjust the #ifdef to reflect this. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to adjust #ifdef position in cros_ec drivers/misc/cros_ec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index f95bfe7..1cb879c 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 * -- 1.9.0.279.gdc9e3eb