diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_backlight.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_backlight.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_backlight.c b/drivers/gpu/drm/nouveau/nouveau_backlight.c index 2ffad2176b7f..630f6e84fc01 100644 --- a/drivers/gpu/drm/nouveau/nouveau_backlight.c +++ b/drivers/gpu/drm/nouveau/nouveau_backlight.c | |||
@@ -82,7 +82,7 @@ nv40_backlight_init(struct drm_connector *connector) | |||
82 | memset(&props, 0, sizeof(struct backlight_properties)); | 82 | memset(&props, 0, sizeof(struct backlight_properties)); |
83 | props.type = BACKLIGHT_RAW; | 83 | props.type = BACKLIGHT_RAW; |
84 | props.max_brightness = 31; | 84 | props.max_brightness = 31; |
85 | bd = backlight_device_register("nv_backlight", &connector->kdev, drm, | 85 | bd = backlight_device_register("nv_backlight", connector->kdev, drm, |
86 | &nv40_bl_ops, &props); | 86 | &nv40_bl_ops, &props); |
87 | if (IS_ERR(bd)) | 87 | if (IS_ERR(bd)) |
88 | return PTR_ERR(bd); | 88 | return PTR_ERR(bd); |
@@ -204,7 +204,7 @@ nv50_backlight_init(struct drm_connector *connector) | |||
204 | memset(&props, 0, sizeof(struct backlight_properties)); | 204 | memset(&props, 0, sizeof(struct backlight_properties)); |
205 | props.type = BACKLIGHT_RAW; | 205 | props.type = BACKLIGHT_RAW; |
206 | props.max_brightness = 100; | 206 | props.max_brightness = 100; |
207 | bd = backlight_device_register("nv_backlight", &connector->kdev, | 207 | bd = backlight_device_register("nv_backlight", connector->kdev, |
208 | nv_encoder, ops, &props); | 208 | nv_encoder, ops, &props); |
209 | if (IS_ERR(bd)) | 209 | if (IS_ERR(bd)) |
210 | return PTR_ERR(bd); | 210 | return PTR_ERR(bd); |