diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/drivers/pci/ops-sh4.c | 22 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-sh5.c | 20 |
2 files changed, 0 insertions, 42 deletions
diff --git a/arch/sh/drivers/pci/ops-sh4.c b/arch/sh/drivers/pci/ops-sh4.c index 7cc1fccf1c52..78bebebdc99c 100644 --- a/arch/sh/drivers/pci/ops-sh4.c +++ b/arch/sh/drivers/pci/ops-sh4.c | |||
@@ -130,28 +130,6 @@ int __init sh4_pci_check_direct(struct pci_channel *chan) | |||
130 | return -EINVAL; | 130 | return -EINVAL; |
131 | } | 131 | } |
132 | 132 | ||
133 | /* Handle generic fixups */ | ||
134 | static void __init pci_fixup_ide_bases(struct pci_dev *d) | ||
135 | { | ||
136 | int i; | ||
137 | |||
138 | /* | ||
139 | * PCI IDE controllers use non-standard I/O port decoding, respect it. | ||
140 | */ | ||
141 | if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE) | ||
142 | return; | ||
143 | pr_debug("PCI: IDE base address fixup for %s\n", pci_name(d)); | ||
144 | for(i = 0; i < 4; i++) { | ||
145 | struct resource *r = &d->resource[i]; | ||
146 | |||
147 | if ((r->start & ~0x80) == 0x374) { | ||
148 | r->start |= 2; | ||
149 | r->end = r->start; | ||
150 | } | ||
151 | } | ||
152 | } | ||
153 | DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases); | ||
154 | |||
155 | int __attribute__((weak)) pci_fixup_pcic(struct pci_channel *chan) | 133 | int __attribute__((weak)) pci_fixup_pcic(struct pci_channel *chan) |
156 | { | 134 | { |
157 | /* Nothing to do. */ | 135 | /* Nothing to do. */ |
diff --git a/arch/sh/drivers/pci/ops-sh5.c b/arch/sh/drivers/pci/ops-sh5.c index b10e2d5f4251..4ce95a001b80 100644 --- a/arch/sh/drivers/pci/ops-sh5.c +++ b/arch/sh/drivers/pci/ops-sh5.c | |||
@@ -22,26 +22,6 @@ | |||
22 | #include <asm/io.h> | 22 | #include <asm/io.h> |
23 | #include "pci-sh5.h" | 23 | #include "pci-sh5.h" |
24 | 24 | ||
25 | static void __init pci_fixup_ide_bases(struct pci_dev *d) | ||
26 | { | ||
27 | int i; | ||
28 | |||
29 | /* | ||
30 | * PCI IDE controllers use non-standard I/O port decoding, respect it. | ||
31 | */ | ||
32 | if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE) | ||
33 | return; | ||
34 | printk("PCI: IDE base address fixup for %s\n", pci_name(d)); | ||
35 | for(i=0; i<4; i++) { | ||
36 | struct resource *r = &d->resource[i]; | ||
37 | if ((r->start & ~0x80) == 0x374) { | ||
38 | r->start |= 2; | ||
39 | r->end = r->start; | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases); | ||
44 | |||
45 | static int sh5pci_read(struct pci_bus *bus, unsigned int devfn, int where, | 25 | static int sh5pci_read(struct pci_bus *bus, unsigned int devfn, int where, |
46 | int size, u32 *val) | 26 | int size, u32 *val) |
47 | { | 27 | { |