diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2007-02-05 19:28:26 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-09 11:23:15 -0500 |
commit | 56a47da1b940b6d3812de67fd94af9bfda6ee93a (patch) | |
tree | 9da555ab50c093f93b11889b986c612fffb220bf /drivers/tc/tc.c | |
parent | b454cc6636d254fbf6049b73e9560aee76fb04a3 (diff) |
[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>
Diffstat (limited to 'drivers/tc/tc.c')
-rw-r--r-- | drivers/tc/tc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tc/tc.c b/drivers/tc/tc.c index 5514e5283616..f77f62a4b325 100644 --- a/drivers/tc/tc.c +++ b/drivers/tc/tc.c | |||
@@ -160,7 +160,7 @@ static int __init tc_init(void) | |||
160 | tc_bus.resource[0].start = tc_bus.slot_base; | 160 | tc_bus.resource[0].start = tc_bus.slot_base; |
161 | tc_bus.resource[0].end = tc_bus.slot_base + | 161 | tc_bus.resource[0].end = tc_bus.slot_base + |
162 | (tc_bus.info.slot_size << 20) * | 162 | (tc_bus.info.slot_size << 20) * |
163 | tc_bus.num_tcslots; | 163 | tc_bus.num_tcslots - 1; |
164 | tc_bus.resource[0].name = tc_bus.name; | 164 | tc_bus.resource[0].name = tc_bus.name; |
165 | tc_bus.resource[0].flags = IORESOURCE_MEM; | 165 | tc_bus.resource[0].flags = IORESOURCE_MEM; |
166 | if (request_resource(&iomem_resource, | 166 | if (request_resource(&iomem_resource, |
@@ -172,7 +172,7 @@ static int __init tc_init(void) | |||
172 | tc_bus.resource[1].start = tc_bus.ext_slot_base; | 172 | tc_bus.resource[1].start = tc_bus.ext_slot_base; |
173 | tc_bus.resource[1].end = tc_bus.ext_slot_base + | 173 | tc_bus.resource[1].end = tc_bus.ext_slot_base + |
174 | tc_bus.ext_slot_size * | 174 | tc_bus.ext_slot_size * |
175 | tc_bus.num_tcslots; | 175 | tc_bus.num_tcslots - 1; |
176 | tc_bus.resource[1].name = tc_bus.name; | 176 | tc_bus.resource[1].name = tc_bus.name; |
177 | tc_bus.resource[1].flags = IORESOURCE_MEM; | 177 | tc_bus.resource[1].flags = IORESOURCE_MEM; |
178 | if (request_resource(&iomem_resource, | 178 | if (request_resource(&iomem_resource, |