aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2014-05-22 14:00:04 -0400
committerSimon Horman <horms+renesas@verge.net.au>2014-05-25 21:44:54 -0400
commitfe95c932a31e7f12bcb6a4e07434462da2ac6e1d (patch)
treefccb43eeab9d2bd301ed3c053a95f34cb7d51319 /drivers/sh
parent3c90c55dcde745bed81f6447f24ba96bda43d984 (diff)
drivers: sh: pm_runtime does not need idle callback
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. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [r8a7779 legacy] Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/pm_runtime.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/sh/pm_runtime.c b/drivers/sh/pm_runtime.c
index 10c65eb51f85..00b82ec94442 100644
--- a/drivers/sh/pm_runtime.c
+++ b/drivers/sh/pm_runtime.c
@@ -21,18 +21,10 @@
21#include <linux/slab.h> 21#include <linux/slab.h>
22 22
23#ifdef CONFIG_PM_RUNTIME 23#ifdef CONFIG_PM_RUNTIME
24
25static int default_platform_runtime_idle(struct device *dev)
26{
27 /* suspend synchronously to disable clocks immediately */
28 return 0;
29}
30
31static struct dev_pm_domain default_pm_domain = { 24static struct dev_pm_domain default_pm_domain = {
32 .ops = { 25 .ops = {
33 .runtime_suspend = pm_clk_suspend, 26 .runtime_suspend = pm_clk_suspend,
34 .runtime_resume = pm_clk_resume, 27 .runtime_resume = pm_clk_resume,
35 .runtime_idle = default_platform_runtime_idle,
36 USE_PLATFORM_PM_SLEEP_OPS 28 USE_PLATFORM_PM_SLEEP_OPS
37 }, 29 },
38}; 30};