Skip to content

Commit 2e42da5

Browse files
author
Ulf Hansson
committed
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 parent 55b604a commit 2e42da5

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎drivers/mmc/core/bus.c‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ static int mmc_bus_resume(struct device *dev)
180180
#endif
181181

182182
#ifdef CONFIG_PM_RUNTIME
183-
184183
static int mmc_runtime_suspend(struct device *dev)
185184
{
186185
struct mmc_card *card = mmc_dev_to_card(dev);
@@ -196,17 +195,10 @@ static int mmc_runtime_resume(struct device *dev)
196195

197196
return host->bus_ops->runtime_resume(host);
198197
}
199-
200-
static int mmc_runtime_idle(struct device *dev)
201-
{
202-
return 0;
203-
}
204-
205198
#endif /* !CONFIG_PM_RUNTIME */
206199

207200
static const struct dev_pm_ops mmc_bus_pm_ops = {
208-
SET_RUNTIME_PM_OPS(mmc_runtime_suspend, mmc_runtime_resume,
209-
mmc_runtime_idle)
201+
SET_RUNTIME_PM_OPS(mmc_runtime_suspend, mmc_runtime_resume, NULL)
210202
SET_SYSTEM_SLEEP_PM_OPS(mmc_bus_suspend, mmc_bus_resume)
211203
};
212204

0 commit comments

Comments
 (0)