summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2011-04-07 16:20:49 +0200
committerDave Airlie <airlied@redhat.com>2011-04-09 16:20:36 +1000
commit88a2b75cceba1fdbc1fdb70c7c8cd2b40da3d95d (patch)
treebd1fdc78ae1a1b97094e8c3bf53cde55ae2528f2 /drivers/gpu
parentdc66b325f161bb651493c7d96ad44876b629cf6a (diff)
downloadblackbird-op-linux-88a2b75cceba1fdbc1fdb70c7c8cd2b40da3d95d.tar.gz
blackbird-op-linux-88a2b75cceba1fdbc1fdb70c7c8cd2b40da3d95d.zip
drm/radeon: Fix KMS legacy backlight support if CONFIG_BACKLIGHT_CLASS_DEVICE=m.
Signed-off-by: Michel Dänzer <daenzer@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_legacy_encoders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
index 5b54268ed6b2..2f46e0c8df53 100644
--- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
@@ -269,7 +269,7 @@ static const struct drm_encoder_helper_funcs radeon_legacy_lvds_helper_funcs = {
.disable = radeon_legacy_encoder_disable,
};
-#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
+#if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) || defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
#define MAX_RADEON_LEVEL 0xFF
OpenPOWER on IntegriCloud