spl: mtd_blk: correct the error parameter
The mmc is not passed in spl_mtd_load_rkfw, use desc. Change-Id: I68a577487dc8a4f2a82c4b80095f10cd6319b508 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
parent
9873075571
commit
01fc0bcda6
|
|
@ -93,9 +93,9 @@ int spl_mtd_load_rkfw(struct spl_image_info *spl_image, struct blk_desc *desc)
|
|||
char trust_partition[] = "trust";
|
||||
char uboot_partition[] = "uboot";
|
||||
|
||||
spl_get_partitions_sector(mmc_get_blk_desc(mmc), trust_partition,
|
||||
spl_get_partitions_sector(desc, trust_partition,
|
||||
&trust_sectors);
|
||||
spl_get_partitions_sector(mmc_get_blk_desc(mmc), uboot_partition,
|
||||
spl_get_partitions_sector(desc, uboot_partition,
|
||||
&uboot_sectors);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue