]> git.sur5r.net Git - u-boot/blobdiff - common/spl/spl_mmc.c
spl: mmc: Fix compiler warning with CONFIG_DM_MMC
[u-boot] / common / spl / spl_mmc.c
index b3c2c642e4ab7f8387ddec80906b103d2ade936d..43748d05b28ee962e310b36b9ab0baa9a732605e 100644 (file)
@@ -248,7 +248,7 @@ int spl_mmc_do_fs_boot(struct mmc *mmc)
 
 int spl_mmc_load_image(u32 boot_device)
 {
-       struct mmc *mmc;
+       struct mmc *mmc = NULL;
        u32 boot_mode;
        int err = 0;
        __maybe_unused int part;