mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fdca124a1b
commit
ef0299bf8e
3 changed files with 18 additions and 18 deletions
|
|
@ -67,7 +67,7 @@ struct rtc_time_generic {
|
|||
/* Retrieve the current date and time from the real time clock. */
|
||||
static void get_rtc_time(struct rtc_time *t)
|
||||
{
|
||||
void * __iomem regs = mstk48t02_regs;
|
||||
void __iomem *regs = mstk48t02_regs;
|
||||
u8 tmp;
|
||||
|
||||
spin_lock_irq(&mostek_lock);
|
||||
|
|
@ -94,7 +94,7 @@ static void get_rtc_time(struct rtc_time *t)
|
|||
/* Set the current date and time inthe real time clock. */
|
||||
void set_rtc_time(struct rtc_time *t)
|
||||
{
|
||||
void * __iomem regs = mstk48t02_regs;
|
||||
void __iomem *regs = mstk48t02_regs;
|
||||
u8 tmp;
|
||||
|
||||
spin_lock_irq(&mostek_lock);
|
||||
|
|
@ -250,7 +250,7 @@ static int __init rtc_sun_init(void)
|
|||
/* It is possible we are being driven by some other RTC chip
|
||||
* and thus another RTC driver is handling things.
|
||||
*/
|
||||
if (mstk48t02_regs == 0)
|
||||
if (!mstk48t02_regs)
|
||||
return -ENODEV;
|
||||
|
||||
error = misc_register(&rtc_dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue