sdhci-of-dwcmshc: disable PM runtime in dwcmshc_remove()
authorLiming Sun <limings@nvidia.com>
Tue, 19 Mar 2024 16:16:16 +0000 (12:16 -0400)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Mar 2024 12:12:46 +0000 (13:12 +0100)
commit03749309909935070253accab314288d332a204d
treefd24834c7255eb52a56566831da0a7908a6b76e4
parentf9e2a5b00a35f2c064dc679808bc8db5cc779ed6
sdhci-of-dwcmshc: disable PM runtime in dwcmshc_remove()

This commit disables PM runtime in dwcmshc_remove() to avoid the
error message below when reloading the sdhci-of-dwcmshc.ko

  sdhci-dwcmshc MLNXBF30:00: Unbalanced pm_runtime_enable!

Fixes: 48fe8fadbe5e ("mmc: sdhci-of-dwcmshc: Add runtime PM operations")
Reviewed-by: David Thompson <davthompson@nvidia.com>
Signed-off-by: Liming Sun <limings@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/b9155963ffb12d18375002bf9ac9a3f98b727fc8.1710854108.git.limings@nvidia.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-dwcmshc.c