[PATCH] drivers/rtc: fix rtc-s3c.c
authorBen Dooks <ben-linux@fluff.org>
Sun, 27 Aug 2006 08:23:22 +0000 (01:23 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 27 Aug 2006 18:01:28 +0000 (11:01 -0700)
commit9a654518e1b774b8e8f74a819fd12a931e7672c9
tree54ba738524292b9f54404ba97029727b05e7a04f
parent66a377c5041e1e399633153c8b500d457281e7c1
[PATCH] drivers/rtc: fix rtc-s3c.c

In the cleanups of drivers/rtc/s3c-rtc.c, the base address for the
registers got broken.  This patch fixes that by ensuring the readb/writeb
are all prefixed with the base returned from ioremap()ing the registers.

Also fix check for valid year range, which was the wrong way around.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/rtc/rtc-s3c.c
include/asm-arm/arch-s3c2410/regs-rtc.h