drm/bridge: analogix_dp: Remove CONFIG_PM related check in analogix_dp_bind()/analogi...
authorDamon Ding <damon.ding@rock-chips.com>
Mon, 10 Mar 2025 10:41:03 +0000 (18:41 +0800)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sun, 20 Apr 2025 22:26:06 +0000 (01:26 +0300)
commitc71db051142a74b255cb61b84d8fedae3b70952f
treea4cc330fe5b86df91ccb2ac1b2e7389edaa62f52
parentefab13e7d13a641a22c7508cde6e1a5285161944
drm/bridge: analogix_dp: Remove CONFIG_PM related check in analogix_dp_bind()/analogix_dp_unbind()

Remove the check related to CONFIG_PM in order to make the code more
concise, as the CONFIG_PM should be a required option for many drivers.

In addition, it is preferable to use devm_pm_runtime_enable() instead of
manually invoking pm_runtime_enable() followed by pm_runtime_disable().

Suggested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Link: https://lore.kernel.org/r/20250310104114.2608063-3-damon.ding@rock-chips.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c