aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers/pci/pci.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-04-20 05:47:21 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-04-20 05:47:21 -0400
commit5160d3f782a5e0cdb3bdaa8a891a1fb9d9ab83ec (patch)
tree6db575d4980c598ec19f16a3454aacef151237e9 /arch/sh/drivers/pci/pci.c
parent09cfeb133e3cac39b8b9a2cb1d8ab4f77e396248 (diff)
sh: pci: Consolidate bus<->resource mapping in pci-lib.
Now that the io and mem offsets are tracked accordingly, the pci-new version of the bus<->resource mappers can be used generically. This moves them in to pci-lib. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/pci.c')
-rw-r--r--arch/sh/drivers/pci/pci.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index d39f24091ade..c15a6f0ad500 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -72,20 +72,6 @@ void __devinit __weak pcibios_fixup_bus(struct pci_bus *bus)
72 pci_read_bridge_bases(bus); 72 pci_read_bridge_bases(bus);
73} 73}
74 74
75void pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region,
76 struct resource *res)
77{
78 region->start = res->start;
79 region->end = res->end;
80}
81
82void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
83 struct pci_bus_region *region)
84{
85 res->start = region->start;
86 res->end = region->end;
87}
88
89int pcibios_enable_device(struct pci_dev *dev, int mask) 75int pcibios_enable_device(struct pci_dev *dev, int mask)
90{ 76{
91 u16 cmd, old_cmd; 77 u16 cmd, old_cmd;