diff options
author | Yinbo Zhu | 2018-09-25 14:47:06 +0800 |
---|---|---|
committer | York Sun | 2018-09-27 08:48:51 -0700 |
commit | c3ced8a6ede69f3f690173def04534eb8a58b93d (patch) | |
tree | 2269d1f1852f4b1f21bcf20fba5a49e8ebd564ff /drivers/net | |
parent | 9dc8d155d4e88563f572ee79aab758eb4272f3fd (diff) |
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/net')
-rw-r--r-- | drivers/net/fm/fm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |