diff options
author | Nathan-J. Hirschauer <nathanhi@deepserve.info> | 2015-02-18 04:01:19 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-02-26 00:05:53 +0300 |
commit | 7a26f9ad1b5badfd0200ce2262ad696e2a6b7fbb (patch) | |
tree | bb5a399011c6f891742fc05d708d7f4accc69175 /drivers | |
parent | 5b49afd60a850acca321a87eb83ab0c387725206 (diff) | |
download | linux-7a26f9ad1b5badfd0200ce2262ad696e2a6b7fbb.tar.xz |
drm/radeon: enable native backlight control on old macs
Commit b7bc596ebbe0 ("drm/radeon: disable native
backlight control on pre-r6xx asics (v2)") accidently
broke backlight control on old mac laptops that use the
on-GPU backlight controller.
Signed-off-by: Nathan-J. Hirschauer <nathanhi@deepserve.info>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_encoders.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index 6b670b0bc47b..3a297037cc17 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c @@ -179,9 +179,12 @@ static void radeon_encoder_add_backlight(struct radeon_encoder *radeon_encoder, (rdev->pdev->subsystem_vendor == 0x1734) && (rdev->pdev->subsystem_device == 0x1107)) use_bl = false; +/* Older PPC macs use on-GPU backlight controller */ +#ifndef CONFIG_PPC_PMAC /* disable native backlight control on older asics */ else if (rdev->family < CHIP_R600) use_bl = false; +#endif else use_bl = true; } |