apple-gmux: Fix kconfig dependencies
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 2 Aug 2012 17:15:14 +0000 (12:15 -0500)
committerMatthew Garrett <mjg@redhat.com>
Fri, 17 Aug 2012 21:34:40 +0000 (17:34 -0400)
Fix the dependencies of apple-gmux to prevent it from being built-in
when one or more of its dependencies is built as a module. Otherwise it
can fail to build due to missing symbols.

v2: Add dependency on ACPI to fix build failure when ACPI=n

Reported-by: Arun Raghavan <arun.raghavan@collabora.co.uk>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/Kconfig

index 2a262f5c5c0ca5753671f74903a2e49d8e65d382..637074d897902123eaf49d5b2ebddfe3494f2e96 100644 (file)
@@ -758,8 +758,11 @@ config SAMSUNG_Q10
 
 config APPLE_GMUX
        tristate "Apple Gmux Driver"
+       depends on ACPI
        depends on PNP
-       select BACKLIGHT_CLASS_DEVICE
+       depends on BACKLIGHT_CLASS_DEVICE
+       depends on BACKLIGHT_APPLE=n || BACKLIGHT_APPLE
+       depends on ACPI_VIDEO=n || ACPI_VIDEO
        ---help---
          This driver provides support for the gmux device found on many
          Apple laptops, which controls the display mux for the hybrid