diff options
author | Dan Carpenter <error27@gmail.com> | 2010-03-22 08:12:42 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-05-27 19:37:30 -0400 |
commit | 5f7df57eeca93fc931b32e7723fe8f964aaa63df (patch) | |
tree | 06d59e19c18ba3374533ec1b1a7e1c2bfbb87930 /drivers | |
parent | f52e62dcc1f555a0f8d8ccc3112454c3ff571395 (diff) |
mfd: Off by one calculating size for timberdale
I'm pretty sure that it should be + 1 here. It's an off by one, because
we start counting at zero.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/timberdale.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/timberdale.h b/drivers/mfd/timberdale.h index 8d27ffabc25d..902c45120241 100644 --- a/drivers/mfd/timberdale.h +++ b/drivers/mfd/timberdale.h | |||
@@ -66,7 +66,7 @@ | |||
66 | 66 | ||
67 | #define CHIPCTLOFFSET 0x800 | 67 | #define CHIPCTLOFFSET 0x800 |
68 | #define CHIPCTLEND 0x8ff | 68 | #define CHIPCTLEND 0x8ff |
69 | #define CHIPCTLSIZE (CHIPCTLEND - CHIPCTLOFFSET) | 69 | #define CHIPCTLSIZE (CHIPCTLEND - CHIPCTLOFFSET + 1) |
70 | 70 | ||
71 | #define INTCOFFSET 0xc00 | 71 | #define INTCOFFSET 0xc00 |
72 | #define INTCEND 0xfff | 72 | #define INTCEND 0xfff |