Skip to content

Commit 4dfe7a6

Browse files
committed
fix reboot or power-off kernel will panic because NPE
Change-Id: If9757abacafecb30031fbe05f8d5900c1f03fd2c Reviewed-on: https://tp-biosrd-v02/gerrit/80609 Reviewed-by: Alex Cheng(鄭富元) <Alex_Cheng@asus.com> Tested-by: Alex Cheng(鄭富元) <Alex_Cheng@asus.com>
1 parent b13d2f3 commit 4dfe7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/dw_mmc-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static int dw_mci_rockchip_probe(struct platform_device *pdev)
290290
static void dw_mci_rockchip_platfm_shutdown(struct platform_device *pdev)
291291
{
292292
struct dw_mci *host = platform_get_drvdata(pdev);
293-
struct mmc_host *mmc = host->cur_slot->mmc;
293+
struct mmc_host *mmc = host->slot[0]->mmc;
294294
int ret;
295295

296296
mdelay(20);

0 commit comments

Comments
 (0)