diff options
Diffstat (limited to 'arch/sh/drivers/pci/pci-new.c')
-rw-r--r-- | arch/sh/drivers/pci/pci-new.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/sh/drivers/pci/pci-new.c b/arch/sh/drivers/pci/pci-new.c index 097eb8811120..4e9251f3d090 100644 --- a/arch/sh/drivers/pci/pci-new.c +++ b/arch/sh/drivers/pci/pci-new.c | |||
@@ -129,29 +129,6 @@ pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, | |||
129 | res->end = region->end + offset; | 129 | res->end = region->end + offset; |
130 | } | 130 | } |
131 | 131 | ||
132 | void pcibios_align_resource(void *data, struct resource *res, | ||
133 | resource_size_t size, resource_size_t align) | ||
134 | __attribute__ ((weak)); | ||
135 | |||
136 | /* | ||
137 | * We need to avoid collisions with `mirrored' VGA ports | ||
138 | * and other strange ISA hardware, so we always want the | ||
139 | * addresses to be allocated in the 0x000-0x0ff region | ||
140 | * modulo 0x400. | ||
141 | */ | ||
142 | void pcibios_align_resource(void *data, struct resource *res, | ||
143 | resource_size_t size, resource_size_t align) | ||
144 | { | ||
145 | if (res->flags & IORESOURCE_IO) { | ||
146 | resource_size_t start = res->start; | ||
147 | |||
148 | if (start & 0x300) { | ||
149 | start = (start + 0x3ff) & ~0x3ff; | ||
150 | res->start = start; | ||
151 | } | ||
152 | } | ||
153 | } | ||
154 | |||
155 | int pcibios_enable_device(struct pci_dev *dev, int mask) | 132 | int pcibios_enable_device(struct pci_dev *dev, int mask) |
156 | { | 133 | { |
157 | u16 cmd, old_cmd; | 134 | u16 cmd, old_cmd; |