diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2009-06-17 16:33:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-17 17:04:42 -0400 |
commit | a6c140969b4685f9b9f6773c0760f55ca66d1825 (patch) | |
tree | 8c360948177c771e08f1a77ee4744b01c25d2580 /arch/sparc | |
parent | cebd78a8c5624b5cf04c39c3335a5fc8670a7b69 (diff) |
Delete pcibios_select_root
This function was only used by pci_claim_resource(), and the last commit
deleted that use.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/pci_64.h | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/pci.c | 13 |
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/sparc/include/asm/pci_64.h b/arch/sparc/include/asm/pci_64.h index 4f79a54948f6..7a1e3566e59c 100644 --- a/arch/sparc/include/asm/pci_64.h +++ b/arch/sparc/include/asm/pci_64.h | |||
@@ -191,8 +191,6 @@ extern void | |||
191 | pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, | 191 | pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, |
192 | struct pci_bus_region *region); | 192 | struct pci_bus_region *region); |
193 | 193 | ||
194 | extern struct resource *pcibios_select_root(struct pci_dev *, struct resource *); | ||
195 | |||
196 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | 194 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) |
197 | { | 195 | { |
198 | return PCI_IRQ_NONE; | 196 | return PCI_IRQ_NONE; |
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 4638fba799e4..57859ad23547 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -711,19 +711,6 @@ void __devinit pcibios_fixup_bus(struct pci_bus *pbus) | |||
711 | pbus->resource[1] = &pbm->mem_space; | 711 | pbus->resource[1] = &pbm->mem_space; |
712 | } | 712 | } |
713 | 713 | ||
714 | struct resource *pcibios_select_root(struct pci_dev *pdev, struct resource *r) | ||
715 | { | ||
716 | struct pci_pbm_info *pbm = pdev->bus->sysdata; | ||
717 | struct resource *root = NULL; | ||
718 | |||
719 | if (r->flags & IORESOURCE_IO) | ||
720 | root = &pbm->io_space; | ||
721 | if (r->flags & IORESOURCE_MEM) | ||
722 | root = &pbm->mem_space; | ||
723 | |||
724 | return root; | ||
725 | } | ||
726 | |||
727 | void pcibios_update_irq(struct pci_dev *pdev, int irq) | 714 | void pcibios_update_irq(struct pci_dev *pdev, int irq) |
728 | { | 715 | { |
729 | } | 716 | } |