Commit 56a47da1b940b6d3812de67fd94af9bfda6ee93a

Authored by Maciej W. Rozycki
Committed by Ralf Baechle
1 parent b454cc6636

[TC] MIPS: TURBOchannel resources off-by-one fix

Fix resource reservation of TURBOchannel areas, where the end is one byte
too far.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -160,7 +160,7 @@
160 160 tc_bus.resource[0].start = tc_bus.slot_base;
161 161 tc_bus.resource[0].end = tc_bus.slot_base +
162 162 (tc_bus.info.slot_size << 20) *
163   - tc_bus.num_tcslots;
  163 + tc_bus.num_tcslots - 1;
164 164 tc_bus.resource[0].name = tc_bus.name;
165 165 tc_bus.resource[0].flags = IORESOURCE_MEM;
166 166 if (request_resource(&iomem_resource,
... ... @@ -172,7 +172,7 @@
172 172 tc_bus.resource[1].start = tc_bus.ext_slot_base;
173 173 tc_bus.resource[1].end = tc_bus.ext_slot_base +
174 174 tc_bus.ext_slot_size *
175   - tc_bus.num_tcslots;
  175 + tc_bus.num_tcslots - 1;
176 176 tc_bus.resource[1].name = tc_bus.name;
177 177 tc_bus.resource[1].flags = IORESOURCE_MEM;
178 178 if (request_resource(&iomem_resource,