From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 18 Sep 2015 11:02:27 -0400 Subject: [U-Boot] [PATCH 1/6] sunxi: Add an option to disable MMC In-Reply-To: <1442577980-26373-2-git-send-email-maxime.ripard@free-electrons.com> References: <1442577980-26373-1-git-send-email-maxime.ripard@free-electrons.com> <1442577980-26373-2-git-send-email-maxime.ripard@free-electrons.com> Message-ID: <20150918150227.GI26226@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: