mmc: omap_hsmmc: use mmc_get_blk_desc() to get the block device desc
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Wed, 22 Mar 2017 15:00:32 +0000 (16:00 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 30 Mar 2017 05:19:43 +0000 (14:19 +0900)
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/mmc/omap_hsmmc.c

index fe929085ebdcb35823f4eaf137093ab0a2719890..d985ac7b144edd1f3e4d29f2e2cbb98a4fea293c 100644 (file)
@@ -166,7 +166,7 @@ static unsigned char mmc_board_init(struct mmc *mmc)
 
 #if defined(CONFIG_OMAP54XX) || defined(CONFIG_OMAP44XX)
        /* 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);
 #endif