
On Fri, Sep 18, 2015 at 11:02:27AM -0400, Tom Rini wrote:
On Fri, Sep 18, 2015 at 02:06:15PM +0200, Maxime Ripard wrote:
Some devices don't have any MMC devices, so it doesn't really make sense to enable the MMC related functions and options for them.
Add an option to disable the MMC support entirely.
Signed-off-by: Maxime Ripard maxime.ripard@free-electrons.com
arch/arm/cpu/armv7/sunxi/board.c | 6 ++++++ include/configs/sunxi-common.h | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c index b40198b36ee5..e6721feb4a4c 100644 --- a/arch/arm/cpu/armv7/sunxi/board.c +++ b/arch/arm/cpu/armv7/sunxi/board.c @@ -135,7 +135,9 @@ DECLARE_GLOBAL_DATA_PTR; */ u32 spl_boot_device(void) { +#ifdef CONFIG_MMC struct mmc *mmc0, *mmc1; +#endif /* * When booting from the SD card or NAND memory, the "eGON.BT0" * signature is expected to be found in memory at the address 0x0004
Just __maybe_unused here, if that's fine with Hans.
Ack.
Thanks! Maxime