Skip to content

Commit b5ddb9a

Browse files
geertutomba
authored andcommitted
drm: rcar-du: lvds: Convert to RUNTIME_PM_OPS()
Convert the Renesas R-Car Display Unit LVDS driver from SET_RUNTIME_PM_OPS() to RUNTIME_PM_OPS(), and pm_ptr(). This reduces kernel size in case CONFIG_PM is disabled. While DRM_RCAR_LVDS depends on PM, the code may still serve as an example for new drivers. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Link: https://lore.kernel.org/r/2264ff4f21a7e17384822e0efba176cf78ae184d.1756999823.git.geert+renesas@glider.be Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
1 parent 9cd6b43 commit b5ddb9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,15 +1013,15 @@ static int rcar_lvds_runtime_resume(struct device *dev)
10131013
}
10141014

10151015
static const struct dev_pm_ops rcar_lvds_pm_ops = {
1016-
SET_RUNTIME_PM_OPS(rcar_lvds_runtime_suspend, rcar_lvds_runtime_resume, NULL)
1016+
RUNTIME_PM_OPS(rcar_lvds_runtime_suspend, rcar_lvds_runtime_resume, NULL)
10171017
};
10181018

10191019
static struct platform_driver rcar_lvds_platform_driver = {
10201020
.probe = rcar_lvds_probe,
10211021
.remove = rcar_lvds_remove,
10221022
.driver = {
10231023
.name = "rcar-lvds",
1024-
.pm = &rcar_lvds_pm_ops,
1024+
.pm = pm_ptr(&rcar_lvds_pm_ops),
10251025
.of_match_table = rcar_lvds_of_table,
10261026
},
10271027
};

0 commit comments

Comments
 (0)