[U-Boot] [PATCH v9 1/4] spl: Remove static declaration on spl_mmc_find_device function
tien.fong.chee at intel.com
tien.fong.chee at intel.com
Tue Feb 27 05:21:54 UTC 2018
From: Tien Fong Chee <tien.fong.chee at intel.com>
This patch removes the static declation on spl_mmc_find_device_function
so this function is accessible by the caller from other file. This patch
is required for later patch.
Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
Reviewed-by: Marek Vasut <marex at denx.de>
---
common/spl/spl_mmc.c | 2 +-
include/spl.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 351f4ed..f1c4168 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -114,7 +114,7 @@ static int spl_mmc_get_device_index(u32 boot_device)
return -ENODEV;
}
-static int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device)
+int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device)
{
#if CONFIG_IS_ENABLED(DM_MMC)
struct udevice *dev;
diff --git a/include/spl.h b/include/spl.h
index c14448b..60424d7 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -12,6 +12,7 @@
/* Platform-specific defines */
#include <linux/compiler.h>
#include <asm/spl.h>
+#include <mmc.h>
/* Value in r0 indicates we booted from U-Boot */
#define UBOOT_NOT_LOADED_FROM_SPL 0x13578642
@@ -83,6 +84,7 @@ void preloader_console_init(void);
u32 spl_boot_device(void);
u32 spl_boot_mode(const u32 boot_device);
void spl_set_bd(void);
+int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device);
/**
* spl_set_header_raw_uboot() - Set up a standard SPL image structure
--
2.2.0
More information about the U-Boot
mailing list