Skip to content

Commit b78c628

Browse files
geertuvinodkoul
authored andcommitted
dmaengine: rcar-dmac: Remove dummy Runtime PM callback
Since commit 63d00be ("PM: runtime: Allow unassigned ->runtime_suspend|resume callbacks"), unassigned .runtime_{suspend,resume}() callbacks are treated the same as dummy callbacks that just return zero. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 75396f5 commit b78c628

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

drivers/dma/sh/rcar-dmac.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,11 +1729,6 @@ static struct dma_chan *rcar_dmac_of_xlate(struct of_phandle_args *dma_spec,
17291729
*/
17301730

17311731
#ifdef CONFIG_PM
1732-
static int rcar_dmac_runtime_suspend(struct device *dev)
1733-
{
1734-
return 0;
1735-
}
1736-
17371732
static int rcar_dmac_runtime_resume(struct device *dev)
17381733
{
17391734
struct rcar_dmac *dmac = dev_get_drvdata(dev);
@@ -1750,8 +1745,7 @@ static const struct dev_pm_ops rcar_dmac_pm = {
17501745
*/
17511746
SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
17521747
pm_runtime_force_resume)
1753-
SET_RUNTIME_PM_OPS(rcar_dmac_runtime_suspend, rcar_dmac_runtime_resume,
1754-
NULL)
1748+
SET_RUNTIME_PM_OPS(NULL, rcar_dmac_runtime_resume, NULL)
17551749
};
17561750

17571751
/* -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)