From: Ben Dooks Date: Thu, 22 May 2014 18:00:04 +0000 (+0200) Subject: drivers: sh: pm_runtime does not need idle callback X-Git-Tag: v4.14-rc1~7438^2~9^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe95c932a31e7f12bcb6a4e07434462da2ac6e1d;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart Tested-by: Laurent Pinchart [r8a7779 legacy] Signed-off-by: Simon Horman --- diff --git a/drivers/sh/pm_runtime.c b/drivers/sh/pm_runtime.c index 10c65eb..00b82ec9 100644 --- a/drivers/sh/pm_runtime.c +++ b/drivers/sh/pm_runtime.c @@ -21,18 +21,10 @@ #include #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 }, };