mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
66a377c504
commit
9a654518e1
2 changed files with 68 additions and 55 deletions
|
|
@ -18,7 +18,7 @@
|
|||
#ifndef __ASM_ARCH_REGS_RTC_H
|
||||
#define __ASM_ARCH_REGS_RTC_H __FILE__
|
||||
|
||||
#define S3C2410_RTCREG(x) ((x) + S3C24XX_VA_RTC)
|
||||
#define S3C2410_RTCREG(x) (x)
|
||||
|
||||
#define S3C2410_RTCCON S3C2410_RTCREG(0x40)
|
||||
#define S3C2410_RTCCON_RTCEN (1<<0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue