drm: connector->dpms is not optional
[deliverable/linux.git] / drivers / gpu / drm / drm_crtc.c
index 24c5434abd1c44e1040676220b84002fdce74ee9..99e7efebedda272c2f92f38a92f6e31e1d3700ca 100644 (file)
@@ -45,7 +45,7 @@
 
 static struct drm_framebuffer *
 internal_framebuffer_create(struct drm_device *dev,
-                           struct drm_mode_fb_cmd2 *r,
+                           const struct drm_mode_fb_cmd2 *r,
                            struct drm_file *file_priv);
 
 /* Avoid boilerplate.  I'm tired of typing. */
@@ -3235,7 +3235,7 @@ static int framebuffer_check(const struct drm_mode_fb_cmd2 *r)
 
 static struct drm_framebuffer *
 internal_framebuffer_create(struct drm_device *dev,
-                           struct drm_mode_fb_cmd2 *r,
+                           const struct drm_mode_fb_cmd2 *r,
                            struct drm_file *file_priv)
 {
        struct drm_mode_config *config = &dev->mode_config;
@@ -4785,9 +4785,7 @@ static int drm_mode_connector_set_obj_prop(struct drm_mode_object *obj,
 
        /* Do DPMS ourselves */
        if (property == connector->dev->mode_config.dpms_property) {
-               ret = 0;
-               if (connector->funcs->dpms)
-                       ret = (*connector->funcs->dpms)(connector, (int)value);
+               ret = (*connector->funcs->dpms)(connector, (int)value);
        } else if (connector->funcs->set_property)
                ret = connector->funcs->set_property(connector, property, value);
 
This page took 0.149671 seconds and 5 git commands to generate.