summaryrefslogtreecommitdiff
path: root/drivers/qe
diff options
context:
space:
mode:
authorYinbo Zhu <yinbo.zhu@nxp.com>2018-09-25 09:47:06 +0300
committerYork Sun <york.sun@nxp.com>2018-09-27 18:48:51 +0300
commitc3ced8a6ede69f3f690173def04534eb8a58b93d (patch)
tree2269d1f1852f4b1f21bcf20fba5a49e8ebd564ff /drivers/qe
parent9dc8d155d4e88563f572ee79aab758eb4272f3fd (diff)
downloadu-boot-c3ced8a6ede69f3f690173def04534eb8a58b93d.tar.xz
ppa/fm/qe: use block layer in ppa/fm/qe driver
At present the MMC subsystem maintains its own list of MMC devices. This cannot work with driver model when CONFIG_BLK is enabled, use blk_dread to replace previous mmc read interface, use mmc_get_blk_desc to get the mmc device property. Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com> [York S: reformatted commit message] Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/qe')
-rw-r--r--drivers/qe/qe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c
index 7654df8008..7010bbc230 100644
--- a/drivers/qe/qe.c
+++ b/drivers/qe/qe.c
@@ -218,7 +218,7 @@ void u_qe_init(void)
printf("\nMMC read: dev # %u, block # %u, count %u ...\n",
dev, blk, cnt);
mmc_init(mmc);
- (void)mmc->block_dev.block_read(&mmc->block_dev, blk, cnt,
+ (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt,
addr);
}
#endif