diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-03-23 18:01:52 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-26 04:33:24 -0400 |
commit | a1978f74da69565a2e472394c7dcb2cfb31b3e45 (patch) | |
tree | 716d036a66ce013d138ad9f8a5b989fbf7b5ad45 /drivers/gpu | |
parent | e22057c8599373e5caef0bc42bdb95d2a361ab0d (diff) |
gma500: medfield: fix build without CONFIG_BACKLIGHT_CLASS_DEVICE
drivers/built-in.o: In function `mdfld_dsi_connector_set_property':
mdfld_dsi_output.c:(.text+0x6e909): undefined reference to `mdfld_set_brightness'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/gma500/mdfld_dsi_output.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.c b/drivers/gpu/drm/gma500/mdfld_dsi_output.c index 4c2cb4a8ad98..5675d93b4205 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_output.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.c | |||
@@ -244,7 +244,6 @@ static int mdfld_dsi_connector_set_property(struct drm_connector *connector, | |||
244 | uint64_t value) | 244 | uint64_t value) |
245 | { | 245 | { |
246 | struct drm_encoder *encoder = connector->encoder; | 246 | struct drm_encoder *encoder = connector->encoder; |
247 | struct backlight_device *psb_bd; | ||
248 | 247 | ||
249 | if (!strcmp(property->name, "scaling mode") && encoder) { | 248 | if (!strcmp(property->name, "scaling mode") && encoder) { |
250 | struct psb_intel_crtc *psb_crtc = | 249 | struct psb_intel_crtc *psb_crtc = |
@@ -301,11 +300,15 @@ static int mdfld_dsi_connector_set_property(struct drm_connector *connector, | |||
301 | value)) | 300 | value)) |
302 | goto set_prop_error; | 301 | goto set_prop_error; |
303 | else { | 302 | else { |
303 | #ifdef CONFIG_BACKLIGHT_CLASS_DEVICE | ||
304 | struct backlight_device *psb_bd; | ||
305 | |||
304 | psb_bd = mdfld_get_backlight_device(); | 306 | psb_bd = mdfld_get_backlight_device(); |
305 | if (psb_bd) { | 307 | if (psb_bd) { |
306 | psb_bd->props.brightness = value; | 308 | psb_bd->props.brightness = value; |
307 | mdfld_set_brightness(psb_bd); | 309 | mdfld_set_brightness(psb_bd); |
308 | } | 310 | } |
311 | #endif | ||
309 | } | 312 | } |
310 | } | 313 | } |
311 | set_prop_done: | 314 | set_prop_done: |