mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[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>
This commit is contained in:
parent
b454cc6636
commit
56a47da1b9
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ static int __init tc_init(void)
|
|||
tc_bus.resource[0].start = tc_bus.slot_base;
|
||||
tc_bus.resource[0].end = tc_bus.slot_base +
|
||||
(tc_bus.info.slot_size << 20) *
|
||||
tc_bus.num_tcslots;
|
||||
tc_bus.num_tcslots - 1;
|
||||
tc_bus.resource[0].name = tc_bus.name;
|
||||
tc_bus.resource[0].flags = IORESOURCE_MEM;
|
||||
if (request_resource(&iomem_resource,
|
||||
|
@ -172,7 +172,7 @@ static int __init tc_init(void)
|
|||
tc_bus.resource[1].start = tc_bus.ext_slot_base;
|
||||
tc_bus.resource[1].end = tc_bus.ext_slot_base +
|
||||
tc_bus.ext_slot_size *
|
||||
tc_bus.num_tcslots;
|
||||
tc_bus.num_tcslots - 1;
|
||||
tc_bus.resource[1].name = tc_bus.name;
|
||||
tc_bus.resource[1].flags = IORESOURCE_MEM;
|
||||
if (request_resource(&iomem_resource,
|
||||
|
|
Loading…
Reference in a new issue