aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2005-08-25 12:27:09 -0400
committerLen Brown <len.brown@intel.com>2005-08-25 12:40:44 -0400
commit6153df7b2f4d27c8bde054db1b947369a6f64d83 (patch)
tree2e30598ad48d05d0ea956b6097e0943a178d6299 /drivers/acpi
parent07fefe4ca93b3e45b2bea32871a4496067888852 (diff)
[ACPI] delete CONFIG_ACPI_PCI
Delete the ability to build an ACPI kernel that does not include PCI support. When such a machine is created and it requires a tuned kernel, send a patch. http://bugzilla.kernel.org/show_bug.cgi?id=1364 Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/Kconfig7
-rw-r--r--drivers/acpi/Makefile2
-rw-r--r--drivers/acpi/osl.c28
3 files changed, 3 insertions, 34 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 83cac52308db..3998c9d35fe1 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -3,7 +3,6 @@
3# 3#
4 4
5menu "ACPI (Advanced Configuration and Power Interface) Support" 5menu "ACPI (Advanced Configuration and Power Interface) Support"
6 depends on PM
7 depends on !X86_VISWS 6 depends on !X86_VISWS
8 depends on !IA64_HP_SIM 7 depends on !IA64_HP_SIM
9 depends on IA64 || X86 8 depends on IA64 || X86
@@ -11,6 +10,8 @@ menu "ACPI (Advanced Configuration and Power Interface) Support"
11config ACPI 10config ACPI
12 bool "ACPI Support" 11 bool "ACPI Support"
13 depends on IA64 || X86 12 depends on IA64 || X86
13 select PM
14 select PCI
14 15
15 default y 16 default y
16 ---help--- 17 ---help---
@@ -281,10 +282,6 @@ config ACPI_POWER
281 bool 282 bool
282 default y 283 default y
283 284
284config ACPI_PCI
285 bool
286 default PCI
287
288config ACPI_SYSTEM 285config ACPI_SYSTEM
289 bool 286 bool
290 default y 287 default y
diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile
index b6a3c9192385..a18243488c66 100644
--- a/drivers/acpi/Makefile
+++ b/drivers/acpi/Makefile
@@ -44,7 +44,7 @@ obj-$(CONFIG_ACPI_EC) += ec.o
44obj-$(CONFIG_ACPI_FAN) += fan.o 44obj-$(CONFIG_ACPI_FAN) += fan.o
45obj-$(CONFIG_ACPI_VIDEO) += video.o 45obj-$(CONFIG_ACPI_VIDEO) += video.o
46obj-$(CONFIG_ACPI_HOTKEY) += hotkey.o 46obj-$(CONFIG_ACPI_HOTKEY) += hotkey.o
47obj-$(CONFIG_ACPI_PCI) += pci_root.o pci_link.o pci_irq.o pci_bind.o 47obj-y += pci_root.o pci_link.o pci_irq.o pci_bind.o
48obj-$(CONFIG_ACPI_POWER) += power.o 48obj-$(CONFIG_ACPI_POWER) += power.o
49obj-$(CONFIG_ACPI_PROCESSOR) += processor.o 49obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
50obj-$(CONFIG_ACPI_CONTAINER) += container.o 50obj-$(CONFIG_ACPI_CONTAINER) += container.o
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 81f0eb863a76..dc69d8760a54 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -86,13 +86,11 @@ acpi_status acpi_os_initialize1(void)
86 * Initialize PCI configuration space access, as we'll need to access 86 * Initialize PCI configuration space access, as we'll need to access
87 * it while walking the namespace (bus 0 and root bridges w/ _BBNs). 87 * it while walking the namespace (bus 0 and root bridges w/ _BBNs).
88 */ 88 */
89#ifdef CONFIG_ACPI_PCI
90 if (!raw_pci_ops) { 89 if (!raw_pci_ops) {
91 printk(KERN_ERR PREFIX 90 printk(KERN_ERR PREFIX
92 "Access to PCI configuration space unavailable\n"); 91 "Access to PCI configuration space unavailable\n");
93 return AE_NULL_ENTRY; 92 return AE_NULL_ENTRY;
94 } 93 }
95#endif
96 kacpid_wq = create_singlethread_workqueue("kacpid"); 94 kacpid_wq = create_singlethread_workqueue("kacpid");
97 BUG_ON(!kacpid_wq); 95 BUG_ON(!kacpid_wq);
98 96
@@ -484,8 +482,6 @@ acpi_os_write_memory(acpi_physical_address phys_addr, u32 value, u32 width)
484 return AE_OK; 482 return AE_OK;
485} 483}
486 484
487#ifdef CONFIG_ACPI_PCI
488
489acpi_status 485acpi_status
490acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, 486acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
491 void *value, u32 width) 487 void *value, u32 width)
@@ -618,30 +614,6 @@ void acpi_os_derive_pci_id(acpi_handle rhandle, /* upper bound */
618 acpi_os_derive_pci_id_2(rhandle, chandle, id, &is_bridge, &bus_number); 614 acpi_os_derive_pci_id_2(rhandle, chandle, id, &is_bridge, &bus_number);
619} 615}
620 616
621#else /*!CONFIG_ACPI_PCI */
622
623acpi_status
624acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id,
625 u32 reg, acpi_integer value, u32 width)
626{
627 return AE_SUPPORT;
628}
629
630acpi_status
631acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id,
632 u32 reg, void *value, u32 width)
633{
634 return AE_SUPPORT;
635}
636
637void acpi_os_derive_pci_id(acpi_handle rhandle, /* upper bound */
638 acpi_handle chandle, /* current node */
639 struct acpi_pci_id **id)
640{
641}
642
643#endif /*CONFIG_ACPI_PCI */
644
645static void acpi_os_execute_deferred(void *context) 617static void acpi_os_execute_deferred(void *context)
646{ 618{
647 struct acpi_os_dpc *dpc = NULL; 619 struct acpi_os_dpc *dpc = NULL;