drm/radeon: use helper for mst connector dpms.
authorDave Airlie <airlied@redhat.com>
Tue, 5 Apr 2016 23:24:49 +0000 (09:24 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Apr 2016 18:58:42 +0000 (14:58 -0400)
I noticed my monitor didn't power off when it should,
this should fix it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_dp_mst.c

index b3b2d058f3d86e5ad822262e3dab5ef73c69af0b..de504ea29c06d355758e79c6ca18345f42e55f88 100644 (file)
@@ -257,14 +257,8 @@ radeon_dp_mst_connector_destroy(struct drm_connector *connector)
        kfree(radeon_connector);
 }
 
-static int radeon_connector_dpms(struct drm_connector *connector, int mode)
-{
-       DRM_DEBUG_KMS("\n");
-       return 0;
-}
-
 static const struct drm_connector_funcs radeon_dp_mst_connector_funcs = {
-       .dpms = radeon_connector_dpms,
+       .dpms = drm_helper_connector_dpms,
        .detect = radeon_dp_mst_detect,
        .fill_modes = drm_helper_probe_single_connector_modes,
        .destroy = radeon_dp_mst_connector_destroy,