]> Git Repo - linux.git/commitdiff
samsung-laptop: fix config build error
authorRandy Dunlap <[email protected]>
Thu, 22 Aug 2013 16:06:23 +0000 (09:06 -0700)
committerMatthew Garrett <[email protected]>
Thu, 5 Sep 2013 12:52:27 +0000 (08:52 -0400)
Fix build failure when ACPI_VIDEO=m and SAMSUNG_LAPTOP=y.
The patch prevents that specific config combination.

drivers/built-in.o: In function `samsung_init':
samsung-laptop.c:(.init.text+0x128ff): undefined reference to `acpi_video_unregister'

Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: Randy Dunlap <[email protected]>
Reported-by: Fengguang Wu <[email protected]>
Cc: Corentin Chary <[email protected]>
build testing:
ACPI_VIDEO=m, SAMSUNG_LAPTOP=m: OK
ACPI_VIDEO=y, SAMSUNG_LAPTOP=m: OK
ACPI_VIDEO=y, SAMSUNG_LAPTOP=y: OK
ACPI=n, SAMSUNG_LAPTOP=y: OK
ACPI=n, SAMSUNG_LAPTOP=m: OK
Signed-off-by: Matthew Garrett <[email protected]>
drivers/platform/x86/Kconfig

index e5b17b1c839898683ed4c73009ee299583f692e9..96d6b2eef4f2a1209f2c9f113e3932b8eb812738 100644 (file)
@@ -732,6 +732,7 @@ config SAMSUNG_LAPTOP
        tristate "Samsung Laptop driver"
        depends on X86
        depends on RFKILL || RFKILL = n
+       depends on ACPI_VIDEO || ACPI_VIDEO = n
        depends on BACKLIGHT_CLASS_DEVICE
        select LEDS_CLASS
        select NEW_LEDS
This page took 0.05983 seconds and 4 git commands to generate.