VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Maciej W. Rozycki <macro@linux-mips.org> 2007-02-05 16:28:26 -0800 committer: Ralf Baechle <ralf@linux-mips.org> 2007-02-09 16:23:15 +0000 commit: 56a47da1b940b6d3812de67fd94af9bfda6ee93a parent: b454cc6636d254fbf6049b73e9560aee76fb04a3
Commit Summary:
[TC] MIPS: TURBOchannel resources off-by-one fix
Diffstat:
1 file 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)
 		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,