Skip to content

Commit 135c294

Browse files
Andrew MortonLinus Torvalds
authored andcommitted
[PATCH] don't select CONFIG_HOTPLUG
It's useful to be able to turn off CONFIG_HOTPLUG for compile-coverage testing and for section-checking coverage. But a few things go and select CONFIG_HOTPLUG, making it a royal PITA to turn the thing off. It's only turnable offable if CONFIG_EMBEDDED anyway. So let's make those things depend on HOTPLUG, not select it. Cc: Greg KH <greg@kroah.com> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent b3cf257 commit 135c294

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎drivers/base/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ config PREVENT_FIRMWARE_BUILD
2020

2121
config FW_LOADER
2222
tristate "Userspace firmware loading support"
23-
select HOTPLUG
23+
depends on HOTPLUG
2424
---help---
2525
This option is provided for the case where no in-kernel-tree modules
2626
require userspace firmware loading support, but a module built outside

‎drivers/pci/hotplug/Kconfig‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ menu "PCI Hotplug Support"
66

77
config HOTPLUG_PCI
88
tristate "Support for PCI Hotplug (EXPERIMENTAL)"
9-
depends on PCI && EXPERIMENTAL
10-
select HOTPLUG
9+
depends on PCI && EXPERIMENTAL && HOTPLUG
1110
---help---
1211
Say Y here if you have a motherboard with a PCI Hotplug controller.
1312
This allows you to add and remove PCI cards while the machine is

‎drivers/pcmcia/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu "PCCARD (PCMCIA/CardBus) support"
66

77
config PCCARD
88
tristate "PCCard (PCMCIA/CardBus) support"
9-
select HOTPLUG
9+
depends on HOTPLUG
1010
---help---
1111
Say Y here if you want to attach PCMCIA- or PC-cards to your Linux
1212
computer. These are credit-card size devices such as network cards,

0 commit comments

Comments
 (0)