aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
authorAl Viro <viro@parcelfarce.linux.theplanet.co.uk>2005-04-24 15:28:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-24 15:28:36 -0400
commitef0299bf8e868c09bff13e6f3c4fc9b835f60471 (patch)
tree0b734b9d95cf5fe38a9a15a48e4900d28447502e /drivers/sbus
parentfdca124a1bcc7e624f6b887c6f26153f40ee43ee (diff)
[PATCH] mostek bogus sparse annotations fixed
void * __iomem foo is not a pointer to iomem - it's an iomem variable containing void *. A pile of such guys in arch/sparc64/kernel/time.c, drivers/sbus/char/rtc.c and include/asm-sparc64/mostek.h turned into intended void __iomem *. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/sbus')
-rw-r--r--drivers/sbus/char/rtc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/sbus/char/rtc.c b/drivers/sbus/char/rtc.c
index 49d1cd99d5ac..9b988baf0b51 100644
--- a/drivers/sbus/char/rtc.c
+++ b/drivers/sbus/char/rtc.c
@@ -67,7 +67,7 @@ struct rtc_time_generic {
67/* Retrieve the current date and time from the real time clock. */ 67/* Retrieve the current date and time from the real time clock. */
68static void get_rtc_time(struct rtc_time *t) 68static void get_rtc_time(struct rtc_time *t)
69{ 69{
70 void * __iomem regs = mstk48t02_regs; 70 void __iomem *regs = mstk48t02_regs;
71 u8 tmp; 71 u8 tmp;
72 72
73 spin_lock_irq(&mostek_lock); 73 spin_lock_irq(&mostek_lock);
@@ -94,7 +94,7 @@ static void get_rtc_time(struct rtc_time *t)
94/* Set the current date and time inthe real time clock. */ 94/* Set the current date and time inthe real time clock. */
95void set_rtc_time(struct rtc_time *t) 95void set_rtc_time(struct rtc_time *t)
96{ 96{
97 void * __iomem regs = mstk48t02_regs; 97 void __iomem *regs = mstk48t02_regs;
98 u8 tmp; 98 u8 tmp;
99 99
100 spin_lock_irq(&mostek_lock); 100 spin_lock_irq(&mostek_lock);
@@ -250,7 +250,7 @@ static int __init rtc_sun_init(void)
250 /* It is possible we are being driven by some other RTC chip 250 /* It is possible we are being driven by some other RTC chip
251 * and thus another RTC driver is handling things. 251 * and thus another RTC driver is handling things.
252 */ 252 */
253 if (mstk48t02_regs == 0) 253 if (!mstk48t02_regs)
254 return -ENODEV; 254 return -ENODEV;
255 255
256 error = misc_register(&rtc_dev); 256 error = misc_register(&rtc_dev);