]> git.ipfire.org Git - people/ms/u-boot.git/commit
sunxi: board: Only try to use the MMC related functions if enabled
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 15 Oct 2015 20:04:06 +0000 (22:04 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 20 Oct 2015 20:48:28 +0000 (22:48 +0200)
commitf7d6b3cc1686f2fc6ea4c28590710c89bedd3a55
tree6726287ea11182a28299bc23b81484cb9d6663f8
parent7a777f6d6f358b8ab97baae82be03ab704d1bd1c
sunxi: board: Only try to use the MMC related functions if enabled

So far, even if CONFIG_MMC was not enabled the board code was trying to use
the MMC-related functions, resulting in linker errors.

Protect those calls by an ifdef.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/board.c