Skip to content

Commit 74fa754

Browse files
committed
reboot or power-off stage kernel will panic because NPE
remove the code avoid kernel panic Change-Id: I8f8a0354e38ee2b2c35e3403ab10861201bf4362 Reviewed-on: https://tp-biosrd-v02/gerrit/80256 Reviewed-by: Alex Cheng(鄭富元) <Alex_Cheng@asus.com> Tested-by: Alex Cheng(鄭富元) <Alex_Cheng@asus.com>
1 parent 65f380f commit 74fa754

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

drivers/mmc/host/dw_mmc-rockchip.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,6 @@ static int dw_mci_rockchip_probe(struct platform_device *pdev)
289289

290290
static void dw_mci_rockchip_platfm_shutdown(struct platform_device *pdev)
291291
{
292-
struct dw_mci *host = platform_get_drvdata(pdev);
293-
struct mmc_host *mmc = host->cur_slot->mmc;
294-
int ret;
295-
296-
mdelay(20);
297-
298-
if (!IS_ERR(mmc->supply.vmmc))
299-
ret = regulator_enable(mmc->supply.vmmc);
300-
301-
if (!IS_ERR(mmc->supply.vqmmc))
302-
regulator_set_voltage(mmc->supply.vqmmc, 3000000, 3300000);
303292
}
304293

305294
#ifdef CONFIG_PM_SLEEP

0 commit comments

Comments
 (0)