Skip to content

Commit bb60023

Browse files
Niklas Söderlundstorulf
authored andcommitted
mmc: tmio: undo PM autosuspend when removing the host
When removing the driver make sure to undo the PM autosuspend configured when probing the host. Signed-off-by: Niklas Söderlund <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 0c13453 commit bb60023

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mmc/host/tmio_mmc_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,7 @@ void tmio_mmc_host_remove(struct tmio_mmc_host *host)
12871287
cancel_delayed_work_sync(&host->delayed_reset_work);
12881288
tmio_mmc_release_dma(host);
12891289

1290+
pm_runtime_dont_use_autosuspend(&pdev->dev);
12901291
pm_runtime_put_sync(&pdev->dev);
12911292
pm_runtime_disable(&pdev->dev);
12921293
}

0 commit comments

Comments
 (0)