From c3ced8a6ede69f3f690173def04534eb8a58b93d Mon Sep 17 00:00:00 2001 From: Yinbo Zhu Date: Tue, 25 Sep 2018 14:47:06 +0800 Subject: 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 [York S: reformatted commit message] Reviewed-by: York Sun --- drivers/net/fm/fm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/net') diff --git a/drivers/net/fm/fm.c b/drivers/net/fm/fm.c index 3327073bf1f..c5cf188f051 100644 --- a/drivers/net/fm/fm.c +++ b/drivers/net/fm/fm.c @@ -402,7 +402,7 @@ int fm_init_common(int index, struct ccsr_fman *reg) 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); } #elif defined(CONFIG_SYS_QE_FMAN_FW_IN_REMOTE) -- cgit v1.2.3