diff options
-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 a17a797fbd..64337b106f 100644 --- a/common/splash_source.c +++ b/common/splash_source.c @@ -48,7 +48,7 @@ static int splash_sf_read_raw(u32 bmp_load_addr, int offset, size_t read_size) } #endif -#ifdef CONFIG_CMD_NAND +#if defined(CONFIG_CMD_NAND) && !defined(CONFIG_SPL_BUILD) static int splash_nand_read_raw(u32 bmp_load_addr, int offset, size_t read_size) { struct mtd_info *mtd = get_nand_dev_by_index(nand_curr_device); |