Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: core: Remove redundant runtime_idle callback

The runtime PM core handles a runtime_idle callback set to NULL as one
returning 0. So, let's just set it to NULL instead.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>

+1 -9
+1 -9
drivers/mmc/core/bus.c
··· 180 180 #endif 181 181 182 182 #ifdef CONFIG_PM_RUNTIME 183 - 184 183 static int mmc_runtime_suspend(struct device *dev) 185 184 { 186 185 struct mmc_card *card = mmc_dev_to_card(dev); ··· 195 196 196 197 return host->bus_ops->runtime_resume(host); 197 198 } 198 - 199 - static int mmc_runtime_idle(struct device *dev) 200 - { 201 - return 0; 202 - } 203 - 204 199 #endif /* !CONFIG_PM_RUNTIME */ 205 200 206 201 static const struct dev_pm_ops mmc_bus_pm_ops = { 207 - SET_RUNTIME_PM_OPS(mmc_runtime_suspend, mmc_runtime_resume, 208 - mmc_runtime_idle) 202 + SET_RUNTIME_PM_OPS(mmc_runtime_suspend, mmc_runtime_resume, NULL) 209 203 SET_SYSTEM_SLEEP_PM_OPS(mmc_bus_suspend, mmc_bus_resume) 210 204 }; 211 205