thunderbolt, efi: Fix Kconfig dependencies
authorLukas Wunner <[email protected]>
Mon, 14 Nov 2016 15:10:33 +0000 (16:10 +0100)
committerIngo Molnar <[email protected]>
Tue, 15 Nov 2016 07:33:22 +0000 (08:33 +0100)
Fix this EFI build failure on certain (rand)configs:

  drivers/firmware/efi/apple-properties.c:149:9: error: implicit declaration of function ???efi_get_device_by_path??? [-Werror=implicit-function-declaration]

which is due to:

  warning: (THUNDERBOLT) selects APPLE_PROPERTIES which has unmet direct dependencies (EFI && EFI_STUB && X86)

Signed-off-by: Lukas Wunner <[email protected]>
Cc: Andreas Noever <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Pedro Vilaça <[email protected]>
Cc: Peter Jones <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Pierre Moreau <[email protected]> [MacBookPro11,3]
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
drivers/thunderbolt/Kconfig

index 0056df7f3c09bfcf1874041ff72ea23167129d81..bb0318ceaf93fc29b9af423708ad504f7b32d695 100644 (file)
@@ -1,7 +1,7 @@
 menuconfig THUNDERBOLT
        tristate "Thunderbolt support for Apple devices"
        depends on PCI
-       select APPLE_PROPERTIES
+       select APPLE_PROPERTIES if EFI_STUB
        select CRC32
        help
          Cactus Ridge Thunderbolt Controller driver