mfd: Off by one calculating size for timberdale
authorDan Carpenter <error27@gmail.com>
Mon, 22 Mar 2010 12:12:42 +0000 (15:12 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 27 May 2010 23:37:30 +0000 (01:37 +0200)
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>
drivers/mfd/timberdale.h

index 8d27ffabc25de748a32945a9b916c251ad6beadd..902c45120241951c9576a04d0e7a212d8a24c0bf 100644 (file)
@@ -66,7 +66,7 @@
 
 #define CHIPCTLOFFSET  0x800
 #define CHIPCTLEND     0x8ff
-#define CHIPCTLSIZE    (CHIPCTLEND - CHIPCTLOFFSET)
+#define CHIPCTLSIZE    (CHIPCTLEND - CHIPCTLOFFSET + 1)
 
 #define INTCOFFSET     0xc00
 #define INTCEND                0xfff