diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-07-10 12:54:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 19:02:13 -0400 |
commit | 36e235901f90fb83215be43cbd8f1ca14661ea40 (patch) | |
tree | 6a991716468ccf99b83934bfd91e7f4dcdd6c1ec /drivers/pci | |
parent | 5463d9f0f323123d96989d318ac9c537158ad0a5 (diff) |
PCI: Only build PCI syscalls on architectures that want them
The PCI syscalls are built on every architecture except X86, but only
a few have ever hooked them up. Use a new Kconfig symbol to save a
couple of kB on the architectures that have never used the syscalls.
Tested on x86 and ia64 only.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile index e3beb784406..006054a4099 100644 --- a/drivers/pci/Makefile +++ b/drivers/pci/Makefile | |||
@@ -41,9 +41,7 @@ obj-$(CONFIG_ACPI) += pci-acpi.o | |||
41 | # Cardbus & CompactPCI use setup-bus | 41 | # Cardbus & CompactPCI use setup-bus |
42 | obj-$(CONFIG_HOTPLUG) += setup-bus.o | 42 | obj-$(CONFIG_HOTPLUG) += setup-bus.o |
43 | 43 | ||
44 | ifndef CONFIG_X86 | 44 | obj-$(CONFIG_PCI_SYSCALL) += syscall.o |
45 | obj-y += syscall.o | ||
46 | endif | ||
47 | 45 | ||
48 | ifeq ($(CONFIG_PCI_DEBUG),y) | 46 | ifeq ($(CONFIG_PCI_DEBUG),y) |
49 | EXTRA_CFLAGS += -DDEBUG | 47 | EXTRA_CFLAGS += -DDEBUG |