diff options
author | Alex Chiang <achiang@hp.com> | 2009-06-22 10:08:07 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-09 16:29:18 -0400 |
commit | a7db50405216610c8a0d62b8b400180b6f366733 (patch) | |
tree | d86aeb344ce4966cf2f7b69c1ec1cd5111372545 /arch/mn10300/include | |
parent | 7135a71b19be1faf48b7148d77844d03bc0717d6 (diff) |
PCI: remove pcibios_scan_all_fns()
This was #define'd as 0 on all platforms, so let's get rid of it.
This change makes pci_scan_slot() slightly easier to read.
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Tony Luck <tony.luck@intel.com>
Cc: David Howells <dhowells@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Acked-by: Russell King <linux@arm.linux.org.uk>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Kyle McMartin <kyle@mcmartin.ca>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/mn10300/include')
-rw-r--r-- | arch/mn10300/include/asm/pci.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/mn10300/include/asm/pci.h b/arch/mn10300/include/asm/pci.h index 19aecc90f7a4..6095a28561dd 100644 --- a/arch/mn10300/include/asm/pci.h +++ b/arch/mn10300/include/asm/pci.h | |||
@@ -101,7 +101,18 @@ extern void pcibios_bus_to_resource(struct pci_dev *dev, | |||
101 | struct resource *res, | 101 | struct resource *res, |
102 | struct pci_bus_region *region); | 102 | struct pci_bus_region *region); |
103 | 103 | ||
104 | #define pcibios_scan_all_fns(a, b) 0 | 104 | static inline struct resource * |
105 | pcibios_select_root(struct pci_dev *pdev, struct resource *res) | ||
106 | { | ||
107 | struct resource *root = NULL; | ||
108 | |||
109 | if (res->flags & IORESOURCE_IO) | ||
110 | root = &ioport_resource; | ||
111 | if (res->flags & IORESOURCE_MEM) | ||
112 | root = &iomem_resource; | ||
113 | |||
114 | return root; | ||
115 | } | ||
105 | 116 | ||
106 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | 117 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) |
107 | { | 118 | { |