mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 20:02:10 -04:00
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>
This commit is contained in:
committed by
Tomi Valkeinen
parent
9cd6b43a0f
commit
b5ddb9ab3d
@@ -1013,7 +1013,7 @@ static int rcar_lvds_runtime_resume(struct device *dev)
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops rcar_lvds_pm_ops = {
|
||||
SET_RUNTIME_PM_OPS(rcar_lvds_runtime_suspend, rcar_lvds_runtime_resume, NULL)
|
||||
RUNTIME_PM_OPS(rcar_lvds_runtime_suspend, rcar_lvds_runtime_resume, NULL)
|
||||
};
|
||||
|
||||
static struct platform_driver rcar_lvds_platform_driver = {
|
||||
@@ -1021,7 +1021,7 @@ static struct platform_driver rcar_lvds_platform_driver = {
|
||||
.remove = rcar_lvds_remove,
|
||||
.driver = {
|
||||
.name = "rcar-lvds",
|
||||
.pm = &rcar_lvds_pm_ops,
|
||||
.pm = pm_ptr(&rcar_lvds_pm_ops),
|
||||
.of_match_table = rcar_lvds_of_table,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user