diff options
author | Nikhil M Jain <n-jain1@ti.com> | 2023-06-09 14:29:59 +0530 |
---|---|---|
committer | Udit Kumar <u-kumar1@ti.com> | 2023-06-12 09:49:41 +0530 |
commit | 3f851ed0f7defff162ad60cc107f2b4e20e14371 (patch) | |
tree | 6dc9692e859096b727cc0b2c7648b5738eb860a7 /common | |
parent | dca8245419503c55e60ed6671dbde36f9143b439 (diff) |
common: splash_source: Fix A53 SPL compilation issue
In A53 SPL stage, CONFIG_USB_STORAGE is defined, which causes
compilation error in splash_source, while trying to compile
splash_load_fs.This failure is due to finding no declaration of function
usb_init. usb_init in SPL stage is only declared when
CONFIG_SPL_USB_STORAGE is defined, thus use CONFIG_IS_ENABLED to check
for SPL_USB_STORAGE at SPL stage.
Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/splash_source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/splash_source.c b/common/splash_source.c index a260137619..3c363b79f9 100644 --- a/common/splash_source.c +++ b/common/splash_source.c @@ -170,7 +170,7 @@ static int splash_select_fs_dev(struct splash_location *location) return res; } -#ifdef CONFIG_USB_STORAGE +#if CONFIG_IS_ENABLED(USB_STORAGE) static int splash_init_usb(void) { int err; |