Commit bce1e405 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Rob Clark

drm/msm/dp: remove unused stubs

Refactoring DP code transformed several functions into empty stubs.
Remove them.
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarKuogee Hsieh <quic_khsieh@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/490100/
Link: https://lore.kernel.org/r/20220617232434.1139950-1-dmitry.baryshkov@linaro.orgSigned-off-by: default avatarRob Clark <robdclark@chromium.org>
parent d7499634
...@@ -867,11 +867,6 @@ static int dp_display_set_mode(struct msm_dp *dp_display, ...@@ -867,11 +867,6 @@ static int dp_display_set_mode(struct msm_dp *dp_display,
return 0; return 0;
} }
static int dp_display_prepare(struct msm_dp *dp_display)
{
return 0;
}
static int dp_display_enable(struct dp_display_private *dp, u32 data) static int dp_display_enable(struct dp_display_private *dp, u32 data)
{ {
int rc = 0; int rc = 0;
...@@ -948,11 +943,6 @@ static int dp_display_disable(struct dp_display_private *dp, u32 data) ...@@ -948,11 +943,6 @@ static int dp_display_disable(struct dp_display_private *dp, u32 data)
return 0; return 0;
} }
static int dp_display_unprepare(struct msm_dp *dp_display)
{
return 0;
}
int dp_display_set_plugged_cb(struct msm_dp *dp_display, int dp_display_set_plugged_cb(struct msm_dp *dp_display,
hdmi_codec_plugged_cb fn, struct device *codec_dev) hdmi_codec_plugged_cb fn, struct device *codec_dev)
{ {
...@@ -1468,21 +1458,9 @@ static int dp_pm_suspend(struct device *dev) ...@@ -1468,21 +1458,9 @@ static int dp_pm_suspend(struct device *dev)
return 0; return 0;
} }
static int dp_pm_prepare(struct device *dev)
{
return 0;
}
static void dp_pm_complete(struct device *dev)
{
}
static const struct dev_pm_ops dp_pm_ops = { static const struct dev_pm_ops dp_pm_ops = {
.suspend = dp_pm_suspend, .suspend = dp_pm_suspend,
.resume = dp_pm_resume, .resume = dp_pm_resume,
.prepare = dp_pm_prepare,
.complete = dp_pm_complete,
}; };
static struct platform_driver dp_display_driver = { static struct platform_driver dp_display_driver = {
...@@ -1694,13 +1672,6 @@ void dp_bridge_enable(struct drm_bridge *drm_bridge) ...@@ -1694,13 +1672,6 @@ void dp_bridge_enable(struct drm_bridge *drm_bridge)
return; return;
} }
rc = dp_display_prepare(dp);
if (rc) {
DRM_ERROR("DP display prepare failed, rc=%d\n", rc);
mutex_unlock(&dp_display->event_mutex);
return;
}
state = dp_display->hpd_state; state = dp_display->hpd_state;
if (state == ST_DISPLAY_OFF) { if (state == ST_DISPLAY_OFF) {
...@@ -1714,7 +1685,6 @@ void dp_bridge_enable(struct drm_bridge *drm_bridge) ...@@ -1714,7 +1685,6 @@ void dp_bridge_enable(struct drm_bridge *drm_bridge)
if (rc) { if (rc) {
DRM_ERROR("DP display post enable failed, rc=%d\n", rc); DRM_ERROR("DP display post enable failed, rc=%d\n", rc);
dp_display_disable(dp_display, 0); dp_display_disable(dp_display, 0);
dp_display_unprepare(dp);
} }
/* completed connection */ /* completed connection */
...@@ -1739,7 +1709,6 @@ void dp_bridge_post_disable(struct drm_bridge *drm_bridge) ...@@ -1739,7 +1709,6 @@ void dp_bridge_post_disable(struct drm_bridge *drm_bridge)
{ {
struct msm_dp_bridge *dp_bridge = to_dp_bridge(drm_bridge); struct msm_dp_bridge *dp_bridge = to_dp_bridge(drm_bridge);
struct msm_dp *dp = dp_bridge->dp_display; struct msm_dp *dp = dp_bridge->dp_display;
int rc = 0;
u32 state; u32 state;
struct dp_display_private *dp_display; struct dp_display_private *dp_display;
...@@ -1758,10 +1727,6 @@ void dp_bridge_post_disable(struct drm_bridge *drm_bridge) ...@@ -1758,10 +1727,6 @@ void dp_bridge_post_disable(struct drm_bridge *drm_bridge)
dp_display_disable(dp_display, 0); dp_display_disable(dp_display, 0);
rc = dp_display_unprepare(dp);
if (rc)
DRM_ERROR("DP display unprepare failed, rc=%d\n", rc);
state = dp_display->hpd_state; state = dp_display->hpd_state;
if (state == ST_DISCONNECT_PENDING) { if (state == ST_DISCONNECT_PENDING) {
/* completed disconnection */ /* completed disconnection */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment