Skip to contentSkip to conversation

RTC: sa1100: Clean out ost register

PATCH Superseded Jett.Zhou 3 participants 3 messages Nov 30, 2011 Real time clock (RTC)

lore
Share & tools
lore

Jett.Zhou

author
#0 lore raw

PATCH v3 1/6 RTC: sa1100: Clean out ost register

These registers are used in old ioctl of UIE and PIE, now they are emulated by rtc generic code of hrtimer, so it can be removed.

---
 drivers/rtc/rtc-sa1100.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/rtc/rtc-sa1100.c +0 -3
index 0b40bb8..6f22c1f 100644
@@ -36,7 +36,6 @@
 
 #ifdef CONFIG_ARCH_PXA
 #include <mach/regs-rtc.h>
-#include <mach/regs-ost.h>
 #endif
 
 #define RTC_DEF_DIVIDER		(32768 - 1)
@@ -188,8 +187,6 @@ static void sa1100_rtc_release(struct device *dev)
 {
 	spin_lock_irq(&sa1100_rtc_lock);
 	RTSR = 0;
-	OIER &= ~OIER_E1;
-	OSSR = OSSR_M1;
 	spin_unlock_irq(&sa1100_rtc_lock);
 
 	free_irq(IRQ_RTCAlrm, dev);
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH v3 1/6 RTC: sa1100: Clean out ost register

Quoted 14 lines · Jett.Zhou

These registers are used in old ioctl of UIE and PIE, now they are emulated by rtc generic code of hrtimer, so it can be removed.

---
 drivers/rtc/rtc-sa1100.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/rtc/rtc-sa1100.c +0 -0
index 0b40bb8..6f22c1f 100644

drivers/rtc/rtc-sa1100.c line 38

Quoted 3 lines
drivers/rtc/rtc-sa1100.c +0 -0
@@ -36,7 +36,6 @@
 
 #ifdef CONFIG_ARCH_PXA
 #include <mach/regs-rtc.h>

please move this to include/linux too
to allow the simgle zImage

Best Regards,
J.

#2 lore raw

PATCH v3 1/6 RTC: sa1100: Clean out ost register

Quoted 16 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 15 lines · Jett.Zhou

These registers are used in old ioctl of UIE and PIE, now they are emulated by rtc generic code of hrtimer, so it can be removed.

---
?drivers/rtc/rtc-sa1100.c | ? ?3 ---
?1 files changed, 0 insertions(+), 3 deletions(-)

drivers/rtc/rtc-sa1100.c +0 -0
index 0b40bb8..6f22c1f 100644
@@ -36,7 +36,6 @@
 
Quoted 7 lines
Quoted 2 lines

?#ifdef CONFIG_ARCH_PXA
?#include <mach/regs-rtc.h>

please move this to include/linux too
to allow ?the simgle zImage

Best Regards,
J.

This patch is used to remove <mach/regs-ost.h>. <regs-rtc.h> will be removed in the rest of this patch series. Please check the third patch.