From: Simon Glass Date: Wed, 13 Jan 2016 16:24:59 -0700 Subject: [U-Boot] [PATCH 09/50] rockchip: Avoid using MMC code when not booting from MMC In-Reply-To: <1452727540-3249-1-git-send-email-sjg@chromium.org> References: <1452727540-3249-1-git-send-email-sjg@chromium.org> Message-ID: <1452727540-3249-10-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 This saves some code space in SPL which is useful on jerry. Signed-off-by: Simon Glass --- arch/arm/mach-rockchip/rk3288-board-spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c index 8199cad..b2c5729 100644 --- a/arch/arm/mach-rockchip/rk3288-board-spl.c +++ b/arch/arm/mach-rockchip/rk3288-board-spl.c @@ -113,6 +113,7 @@ static void configure_l2ctlr(void) static int configure_emmc(struct udevice *pinctrl) { +#ifdef CONFIG_SPL_MMC_SUPPORT struct gpio_desc desc; int ret; @@ -142,6 +143,7 @@ static int configure_emmc(struct udevice *pinctrl) debug("gpio value ret=%d\n", ret); return ret; } +#endif return 0; } -- 2.6.0.rc2.230.g3dd15c0