Convert CONFIG_SPL_SPI_SUPPORT to Kconfig
[oweals/u-boot.git] / arch / arm / mach-at91 / spl.c
index ad6a597c7317e7c000c9f9ba8d1707e7518d0b57..98f280cbf7732c460d291a1da0e64be08ecd57f0 100644 (file)
@@ -77,7 +77,7 @@ u32 spl_boot_device(void)
 
 u32 spl_boot_mode(const u32 boot_device)
 {
-       switch (spl_boot_device()) {
+       switch (boot_device) {
 #ifdef CONFIG_SYS_USE_MMC
        case BOOT_DEVICE_MMC1:
        case BOOT_DEVICE_MMC2: