ACPIPHP: allow acpiphp to build without ACPI_DOCK
authorKristen Carlson Accardi <kristen.c.accardi@intel.com>
Wed, 26 Jul 2006 17:32:00 +0000 (13:32 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 16 Aug 2006 05:00:07 +0000 (01:00 -0400)
Change the build options for acpiphp so that it may build without being
dependent on the ACPI_DOCK option, but yet does not allow the option of
acpiphp being built-in when dock is built as a module.
This does not change the previous patch for ACPI_IBM_DOCK Kconfig.

For the following matrix of config options, I built an i386 kernel.

Dock acpiphp should it build? confirmed
y y y y
y n y y
y m y y
m y no - acpiphp should acpiphp was
     convert to m converted to m
m n y y
m m y y
n y y y
n n y y
n m y y

Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pci/hotplug/Kconfig

index 3fae77f..1c363d8 100644 (file)
@@ -76,7 +76,7 @@ config HOTPLUG_PCI_IBM
 
 config HOTPLUG_PCI_ACPI
        tristate "ACPI PCI Hotplug driver"
-       depends on ACPI_DOCK && HOTPLUG_PCI
+       depends on (!ACPI_DOCK && ACPI && HOTPLUG_PCI) || (ACPI_DOCK && HOTPLUG_PCI)
        help
          Say Y here if you have a system that supports PCI Hotplug using
          ACPI.