Skip to contentSkip to conversation

drivers: sh: pm_runtime does not need idle callback

PATCH In review Geert Uytterhoeven 1 participant 1 message Mar 19, 2014 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 drivers: sh: pm_runtime does not need idle callback

From: Ben Dooks <[email protected]>

In the runtime_pm idle callback the code assumes that a NULL .runtime_idle entry is the same as a .runtime_idle entry that returns 0 as a result. This means the entry in drivers/sh/pm_runtime can be removed in favour of just leaving the entry NULL.

---
 drivers/sh/pm_runtime.c |    8 --------
 1 file changed, 8 deletions(-)
drivers/sh/pm_runtime.c +0 -8
index 8afa5a4589f2..5cfbd825a9c8 100644
@@ -21,18 +21,10 @@
 #include <linux/slab.h>
 
 #ifdef CONFIG_PM_RUNTIME
-
-static int default_platform_runtime_idle(struct device *dev)
-{
-	/* suspend synchronously to disable clocks immediately */
-	return 0;
-}
-
 static struct dev_pm_domain default_pm_domain = {
 	.ops = {
 		.runtime_suspend = pm_clk_suspend,
 		.runtime_resume = pm_clk_resume,
-		.runtime_idle = default_platform_runtime_idle,
 		USE_PLATFORM_PM_SLEEP_OPS
 	},
 };
Signature · 1 line
1.7.9.5