mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 06:46:59 +00:00
spl: mmc: Fix subsequent calls to spl_mmc_load with CONFIG_BLK
MMC devices do not have uclass platdata containing blk_descs, only their
child block devices do. Fortunately, we have a function just for this
purpose. This fixes subsequent calls to spl_mmc_load.
Fixes: bf28d9a659
("spl: mmc: Use correct MMC device when loading image")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
e65b5d35c9
commit
a0733b3c66
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ static int spl_mmc_get_mmc_devnum(struct mmc *mmc)
|
|||
#if !CONFIG_IS_ENABLED(BLK)
|
||||
block_dev = &mmc->block_dev;
|
||||
#else
|
||||
block_dev = dev_get_uclass_plat(mmc->dev);
|
||||
block_dev = mmc_get_blk_desc(mmc);
|
||||
#endif
|
||||
return block_dev->devnum;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue