aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/Makefile
diff options
context:
space:
mode:
authorKristen Accardi <kristen.c.accardi@intel.com>2006-03-03 13:16:05 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-23 17:35:17 -0500
commit783c49fc506d9afe4784390b556fa25ede5d6d1f (patch)
tree8090c2251193211129816254f16f10cbb33ed20c /drivers/pci/hotplug/Makefile
parentf5afe8064f3087bead8fea7e32547c2a3ada5fd0 (diff)
[PATCH] PCI Hotplug: add common acpi functions to core
shpchprm_acpi.c and pciehprm_acpi.c are nearly identical. In addition, there are functions in both these files that are also in acpiphp_glue.c. This patch will remove duplicate functions from shpchp, pciehp, and acpiphp and move this functionality to pci_hotplug, as it is not hardware specific. Get rid of shpchprm* and pciehprm* files since they are no longer needed. shpchprm_nonacpi.c and pciehprm_nonacpi.c are identical, as well as shpchprm_legacy.c and can be replaced with a macro. This patch also changes acpiphp to use the common hpp code. Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/Makefile')
-rw-r--r--drivers/pci/hotplug/Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/pci/hotplug/Makefile b/drivers/pci/hotplug/Makefile
index 1c0ed377ed91..421cfffb1756 100644
--- a/drivers/pci/hotplug/Makefile
+++ b/drivers/pci/hotplug/Makefile
@@ -22,6 +22,9 @@ ifdef CONFIG_HOTPLUG_PCI_CPCI
22pci_hotplug-objs += cpci_hotplug_core.o \ 22pci_hotplug-objs += cpci_hotplug_core.o \
23 cpci_hotplug_pci.o 23 cpci_hotplug_pci.o
24endif 24endif
25ifdef CONFIG_ACPI
26pci_hotplug-objs += acpi_pcihp.o
27endif
25 28
26cpqphp-objs := cpqphp_core.o \ 29cpqphp-objs := cpqphp_core.o \
27 cpqphp_ctrl.o \ 30 cpqphp_ctrl.o \
@@ -51,23 +54,9 @@ pciehp-objs := pciehp_core.o \
51 pciehp_ctrl.o \ 54 pciehp_ctrl.o \
52 pciehp_pci.o \ 55 pciehp_pci.o \
53 pciehp_hpc.o 56 pciehp_hpc.o
54ifdef CONFIG_ACPI
55 pciehp-objs += pciehprm_acpi.o
56else
57 pciehp-objs += pciehprm_nonacpi.o
58endif
59 57
60shpchp-objs := shpchp_core.o \ 58shpchp-objs := shpchp_core.o \
61 shpchp_ctrl.o \ 59 shpchp_ctrl.o \
62 shpchp_pci.o \ 60 shpchp_pci.o \
63 shpchp_sysfs.o \ 61 shpchp_sysfs.o \
64 shpchp_hpc.o 62 shpchp_hpc.o
65ifdef CONFIG_ACPI
66 shpchp-objs += shpchprm_acpi.o
67else
68 ifdef CONFIG_HOTPLUG_PCI_SHPC_PHPRM_LEGACY
69 shpchp-objs += shpchprm_legacy.o
70 else
71 shpchp-objs += shpchprm_nonacpi.o
72 endif
73endif