From: Simon Glass Date: Fri, 22 Jan 2016 02:43:32 +0000 (-0700) Subject: rockchip: Avoid using MMC code when not booting from MMC X-Git-Tag: v2016.03-rc1~228 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e724f8ea8b72f83d08e129d73ee21d2c8c337bc;p=u-boot rockchip: Avoid using MMC code when not booting from MMC This saves some code space in SPL which is useful on jerry. Signed-off-by: Simon Glass --- diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c index 8199cad3fa..b2c57292a7 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; }