Skip to content

Commit b964444

Browse files
committed
drm/msm/hdmi: use devres helper for runtime PM management
Use devm_pm_runtime_enable() to enable runtime PM. This way its effect will be reverted on device unbind/destruction. Fixes: 6ed9ed4 ("drm/msm/hdmi: Set up runtime PM for HDMI") Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/499647/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 9a5c158 commit b964444

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/msm/hdmi

1 file changed

+1
-1
lines changed

drivers/gpu/drm/msm/hdmi/hdmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static struct hdmi *msm_hdmi_init(struct platform_device *pdev)
252252
if (hdmi->hpd_gpiod)
253253
gpiod_set_consumer_name(hdmi->hpd_gpiod, "HDMI_HPD");
254254

255-
pm_runtime_enable(&pdev->dev);
255+
devm_pm_runtime_enable(&pdev->dev);
256256

257257
hdmi->workq = alloc_ordered_workqueue("msm_hdmi", 0);
258258

0 commit comments

Comments
 (0)