diff options
| -rw-r--r-- | arch/microblaze/pci/pci-common.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 5e569fa9b87b..01c8c97c15b7 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
| @@ -1131,21 +1131,20 @@ static int skip_isa_ioresource_align(struct pci_dev *dev) | |||
| 1131 | * but we want to try to avoid allocating at 0x2900-0x2bff | 1131 | * but we want to try to avoid allocating at 0x2900-0x2bff |
| 1132 | * which might have be mirrored at 0x0100-0x03ff.. | 1132 | * which might have be mirrored at 0x0100-0x03ff.. |
| 1133 | */ | 1133 | */ |
| 1134 | void pcibios_align_resource(void *data, struct resource *res, | 1134 | resource_size_t pcibios_align_resource(void *data, const struct resource *res, |
| 1135 | resource_size_t size, resource_size_t align) | 1135 | resource_size_t size, resource_size_t align) |
| 1136 | { | 1136 | { |
| 1137 | struct pci_dev *dev = data; | 1137 | struct pci_dev *dev = data; |
| 1138 | resource_size_t start = res->start; | ||
| 1138 | 1139 | ||
| 1139 | if (res->flags & IORESOURCE_IO) { | 1140 | if (res->flags & IORESOURCE_IO) { |
| 1140 | resource_size_t start = res->start; | ||
| 1141 | |||
| 1142 | if (skip_isa_ioresource_align(dev)) | 1141 | if (skip_isa_ioresource_align(dev)) |
| 1143 | return; | 1142 | return start; |
| 1144 | if (start & 0x300) { | 1143 | if (start & 0x300) |
| 1145 | start = (start + 0x3ff) & ~0x3ff; | 1144 | start = (start + 0x3ff) & ~0x3ff; |
| 1146 | res->start = start; | ||
| 1147 | } | ||
| 1148 | } | 1145 | } |
| 1146 | |||
| 1147 | return start; | ||
| 1149 | } | 1148 | } |
| 1150 | EXPORT_SYMBOL(pcibios_align_resource); | 1149 | EXPORT_SYMBOL(pcibios_align_resource); |
| 1151 | 1150 | ||
