diff options
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_backlight.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_backlight.c b/drivers/gpu/drm/nouveau/nouveau_backlight.c index a34cd35d4965..8b1ca4add2ed 100644 --- a/drivers/gpu/drm/nouveau/nouveau_backlight.c +++ b/drivers/gpu/drm/nouveau/nouveau_backlight.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | * Register locations derived from NVClock by Roderick Colenbrander | 30 | * Register locations derived from NVClock by Roderick Colenbrander |
| 31 | */ | 31 | */ |
| 32 | 32 | ||
| 33 | #include <linux/apple-gmux.h> | ||
| 33 | #include <linux/backlight.h> | 34 | #include <linux/backlight.h> |
| 34 | #include <linux/idr.h> | 35 | #include <linux/idr.h> |
| 35 | 36 | ||
| @@ -267,6 +268,11 @@ nouveau_backlight_init(struct drm_device *dev) | |||
| 267 | struct nvif_device *device = &drm->device; | 268 | struct nvif_device *device = &drm->device; |
| 268 | struct drm_connector *connector; | 269 | struct drm_connector *connector; |
| 269 | 270 | ||
| 271 | if (apple_gmux_present()) { | ||
| 272 | NV_INFO(drm, "Apple GMUX detected: not registering Nouveau backlight interface\n"); | ||
| 273 | return 0; | ||
| 274 | } | ||
| 275 | |||
| 270 | INIT_LIST_HEAD(&drm->bl_connectors); | 276 | INIT_LIST_HEAD(&drm->bl_connectors); |
| 271 | 277 | ||
| 272 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { | 278 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { |
