Skip to content

Commit fe95c93

Browse files
bjdooks-cthorms
authored andcommitted
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>
1 parent 3c90c55 commit fe95c93

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎drivers/sh/pm_runtime.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,10 @@
2121
#include <linux/slab.h>
2222

2323
#ifdef CONFIG_PM_RUNTIME
24-
25-
static int default_platform_runtime_idle(struct device *dev)
26-
{
27-
/* suspend synchronously to disable clocks immediately */
28-
return 0;
29-
}
30-
3124
static struct dev_pm_domain default_pm_domain = {
3225
.ops = {
3326
.runtime_suspend = pm_clk_suspend,
3427
.runtime_resume = pm_clk_resume,
35-
.runtime_idle = default_platform_runtime_idle,
3628
USE_PLATFORM_PM_SLEEP_OPS
3729
},
3830
};

0 commit comments

Comments
 (0)