Subject: [PATCH] [acpi driver model] Add Kconfig option for new driver model - Create drivers/acpi/drivers/Kconfig - Include it from drivers/acpi/Kconfig - Only build ACPI driver core if option is selected Signed-off-by: Patrick Mochel --- drivers/acpi/Kconfig | 3 +++ drivers/acpi/drivers/Kconfig | 23 +++++++++++++++++++++++ drivers/acpi/drivers/Makefile | 2 +- 3 files changed, 27 insertions(+), 1 deletions(-) create mode 100644 drivers/acpi/drivers/Kconfig applies-to: 6784adaaa769f7939cf199a05c1064f76054e913 7ee0dffba24101995dc5c83158e62fff5d2e0440 diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index fce21c2..4e3904d 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -70,6 +70,9 @@ config ACPI_SLEEP_PROC_FS depends on ACPI_SLEEP && PROC_FS default y + +source drivers/acpi/drivers/Kconfig + config ACPI_SLEEP_PROC_SLEEP bool "/proc/acpi/sleep (deprecated)" depends on ACPI_SLEEP_PROC_FS diff --git a/drivers/acpi/drivers/Kconfig b/drivers/acpi/drivers/Kconfig new file mode 100644 index 0000000..e505b85 --- /dev/null +++ b/drivers/acpi/drivers/Kconfig @@ -0,0 +1,23 @@ + +menu "ACPI Driver Support" + + +config ACPI_DRIVER_MODEL + bool "Enable (New) ACPI Device Driver Support" + default y + ---help--- + This option enables support for the new-style ACPI driver model. + + This new driver model supercedes the legacy ACPI driver model. + It takes advantage of the core Linux driver model, making the + actual device drivers simpler and more extensible. + + This option only enables the core driver model code for ACPI. + Support for each individual driver must be done manually by + selecting the options below. + + The old (Legacy) drivers may still be used, even with this + option enabled, so please say 'Y' here. + +endmenu + diff --git a/drivers/acpi/drivers/Makefile b/drivers/acpi/drivers/Makefile index ad64855..3ea55ef 100644 --- a/drivers/acpi/drivers/Makefile +++ b/drivers/acpi/drivers/Makefile @@ -1,2 +1,2 @@ -obj-y := core/ +obj-$(CONFIG_ACPI_DRIVER_MODEL) := core/ --- 0.99.9.GIT