OSDN Git Service

mmc: tmio: Fixup runtime PM management during remove
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 13 Sep 2019 09:20:22 +0000 (11:20 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 13 Sep 2019 11:49:09 +0000 (13:49 +0200)
commit87b5d602a1cc76169b8d81ec2c74c8d95d9350dc
treee9ff9b5cab17d2e5a86311ddfd0f718c7f23e0cc
parentaa86f1a3887523d78bfadd1c4e4df8f919336511
mmc: tmio: Fixup runtime PM management during remove

Accessing the device when it may be runtime suspended is a bug, which is
the case in tmio_mmc_host_remove(). Let's fix the behaviour.

Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/mmc/host/tmio_mmc_core.c