dm: mmc: Use the new select_hwpart() API
Avoid calling directly into the MMC code - use the new API call instead. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -296,7 +296,7 @@ int spl_mmc_load_image(u32 boot_device)
|
||||
if (part == 7)
|
||||
part = 0;
|
||||
|
||||
err = mmc_switch_part(0, part);
|
||||
err = blk_dselect_hwpart(mmc_get_blk_desc(mmc), part);
|
||||
if (err) {
|
||||
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||
puts("spl: mmc partition switch failed\n");
|
||||
|
||||
Reference in New Issue
Block a user