提交 dc09127a 编写于 作者: J Jean-Jacques Hiblot 提交者: Jaehoon Chung

mmc: omap_hsmmc: use mmc_get_blk_desc() to get the block device desc

Signed-off-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: NTom Rini <trini@konsulko.com>
上级 ae000e23
...@@ -166,7 +166,7 @@ static unsigned char mmc_board_init(struct mmc *mmc) ...@@ -166,7 +166,7 @@ static unsigned char mmc_board_init(struct mmc *mmc)
#if defined(CONFIG_OMAP54XX) || defined(CONFIG_OMAP44XX) #if defined(CONFIG_OMAP54XX) || defined(CONFIG_OMAP44XX)
/* PBIAS config needed for MMC1 only */ /* PBIAS config needed for MMC1 only */
if (mmc->block_dev.devnum == 0) if (mmc_get_blk_desc(mmc)->devnum == 0)
vmmc_pbias_config(LDO_VOLT_3V0); vmmc_pbias_config(LDO_VOLT_3V0);
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册