Commit efd14b62 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] sparc32: fix sbus rtc warnings

Add a sparc #ifdef to drivers/char/rtc.c and iomem annotations to
drivers/sbus/char/rtc.c
Signed-off-by: default avatarWilliam Irwin <wli@holomorphy.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c6380bca
...@@ -878,7 +878,7 @@ static struct miscdevice rtc_dev= ...@@ -878,7 +878,7 @@ static struct miscdevice rtc_dev=
&rtc_fops &rtc_fops
}; };
#ifdef RTC_IRQ #if defined(RTC_IRQ) && !defined(__sparc__)
static irqreturn_t (*rtc_int_handler_ptr)(int irq, void *dev_id, struct pt_regs *regs); static irqreturn_t (*rtc_int_handler_ptr)(int irq, void *dev_id, struct pt_regs *regs);
#endif #endif
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/poll.h> #include <linux/poll.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <asm/io.h>
#include <asm/mostek.h> #include <asm/mostek.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -30,7 +31,7 @@ static int rtc_busy = 0; ...@@ -30,7 +31,7 @@ static int rtc_busy = 0;
/* Retrieve the current date and time from the real time clock. */ /* Retrieve the current date and time from the real time clock. */
static void get_rtc_time(struct rtc_time *t) static void get_rtc_time(struct rtc_time *t)
{ {
unsigned long regs = mstk48t02_regs; void * __iomem regs = mstk48t02_regs;
u8 tmp; u8 tmp;
spin_lock_irq(&mostek_lock); spin_lock_irq(&mostek_lock);
...@@ -57,7 +58,7 @@ static void get_rtc_time(struct rtc_time *t) ...@@ -57,7 +58,7 @@ static void get_rtc_time(struct rtc_time *t)
/* Set the current date and time inthe real time clock. */ /* Set the current date and time inthe real time clock. */
void set_rtc_time(struct rtc_time *t) void set_rtc_time(struct rtc_time *t)
{ {
unsigned long regs = mstk48t02_regs; void * __iomem regs = mstk48t02_regs;
u8 tmp; u8 tmp;
spin_lock_irq(&mostek_lock); spin_lock_irq(&mostek_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment