@@ -357,6 +357,8 @@ config EEEPC_LAPTOP
depends on RFKILL || RFKILL = n
select BACKLIGHT_CLASS_DEVICE
select HWMON
+ select HOTPLUG
+ select HOTPLUG_PCI if PCI
---help---
This driver supports the Fn-Fx keys on Eee PC laptops.
We never select CONFIG_HOTPLUG_PCI, as it is a non-trivial,
interactive, many-child-dependencies configuration option.
The select caused partial dependencies to be instantiated by the
Kconfig language, and allowed the PCI hotplug core code to be built
without SYSFS - so drivers/pci/slot.c wasnt built but was being
relied on.
The complexity of select statements is already a warning sign that
something unusual is done here. They should be avoided generally,
except for clear-cut 'leaf' modules.
The patch below fixes the build failure by turning the select lines
into a single 'depends on' line. There's no significant reduction in
utility of the driver: it already has a list of dependencies, and
basically all distros enable hotplug-pci anyway.
Ingo
Signed-off-by: Ingo Molnar <mingo@elte.hu>
@@ -355,10 +355,9 @@ config EEEPC_LAPTOP
depends on INPUT
depends on EXPERIMENTAL
depends on RFKILL || RFKILL = n
+ depends on HOTPLUG_PCI
select BACKLIGHT_CLASS_DEVICE
select HWMON
- select HOTPLUG
- select HOTPLUG_PCI if PCI
---help---
This driver supports the Fn-Fx keys on Eee PC laptops.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in