aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc64/kernel/time.c24
-rw-r--r--drivers/sbus/char/rtc.c6
-rw-r--r--include/asm-sparc64/mostek.h6
3 files changed, 18 insertions, 18 deletions
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c
index c60785c046be..71b4e3807694 100644
--- a/arch/sparc64/kernel/time.c
+++ b/arch/sparc64/kernel/time.c
@@ -48,7 +48,7 @@
48 48
49DEFINE_SPINLOCK(mostek_lock); 49DEFINE_SPINLOCK(mostek_lock);
50DEFINE_SPINLOCK(rtc_lock); 50DEFINE_SPINLOCK(rtc_lock);
51void * __iomem mstk48t02_regs = 0UL; 51void __iomem *mstk48t02_regs = NULL;
52#ifdef CONFIG_PCI 52#ifdef CONFIG_PCI
53unsigned long ds1287_regs = 0UL; 53unsigned long ds1287_regs = 0UL;
54#endif 54#endif
@@ -59,8 +59,8 @@ u64 jiffies_64 = INITIAL_JIFFIES;
59 59
60EXPORT_SYMBOL(jiffies_64); 60EXPORT_SYMBOL(jiffies_64);
61 61
62static void * __iomem mstk48t08_regs; 62static void __iomem *mstk48t08_regs;
63static void * __iomem mstk48t59_regs; 63static void __iomem *mstk48t59_regs;
64 64
65static int set_rtc_mmss(unsigned long); 65static int set_rtc_mmss(unsigned long);
66 66
@@ -520,7 +520,7 @@ void timer_tick_interrupt(struct pt_regs *regs)
520/* Kick start a stopped clock (procedure from the Sun NVRAM/hostid FAQ). */ 520/* Kick start a stopped clock (procedure from the Sun NVRAM/hostid FAQ). */
521static void __init kick_start_clock(void) 521static void __init kick_start_clock(void)
522{ 522{
523 void * __iomem regs = mstk48t02_regs; 523 void __iomem *regs = mstk48t02_regs;
524 u8 sec, tmp; 524 u8 sec, tmp;
525 int i, count; 525 int i, count;
526 526
@@ -604,7 +604,7 @@ static void __init kick_start_clock(void)
604/* Return nonzero if the clock chip battery is low. */ 604/* Return nonzero if the clock chip battery is low. */
605static int __init has_low_battery(void) 605static int __init has_low_battery(void)
606{ 606{
607 void * __iomem regs = mstk48t02_regs; 607 void __iomem *regs = mstk48t02_regs;
608 u8 data1, data2; 608 u8 data1, data2;
609 609
610 spin_lock_irq(&mostek_lock); 610 spin_lock_irq(&mostek_lock);
@@ -623,7 +623,7 @@ static int __init has_low_battery(void)
623static void __init set_system_time(void) 623static void __init set_system_time(void)
624{ 624{
625 unsigned int year, mon, day, hour, min, sec; 625 unsigned int year, mon, day, hour, min, sec;
626 void * __iomem mregs = mstk48t02_regs; 626 void __iomem *mregs = mstk48t02_regs;
627#ifdef CONFIG_PCI 627#ifdef CONFIG_PCI
628 unsigned long dregs = ds1287_regs; 628 unsigned long dregs = ds1287_regs;
629#else 629#else
@@ -843,7 +843,7 @@ void __init clock_probe(void)
843 !strcmp(model, "m5823")) { 843 !strcmp(model, "m5823")) {
844 ds1287_regs = edev->resource[0].start; 844 ds1287_regs = edev->resource[0].start;
845 } else { 845 } else {
846 mstk48t59_regs = (void * __iomem) 846 mstk48t59_regs = (void __iomem *)
847 edev->resource[0].start; 847 edev->resource[0].start;
848 mstk48t02_regs = mstk48t59_regs + MOSTEK_48T59_48T02; 848 mstk48t02_regs = mstk48t59_regs + MOSTEK_48T59_48T02;
849 } 849 }
@@ -866,7 +866,7 @@ try_isa_clock:
866 !strcmp(model, "m5823")) { 866 !strcmp(model, "m5823")) {
867 ds1287_regs = isadev->resource.start; 867 ds1287_regs = isadev->resource.start;
868 } else { 868 } else {
869 mstk48t59_regs = (void * __iomem) 869 mstk48t59_regs = (void __iomem *)
870 isadev->resource.start; 870 isadev->resource.start;
871 mstk48t02_regs = mstk48t59_regs + MOSTEK_48T59_48T02; 871 mstk48t02_regs = mstk48t59_regs + MOSTEK_48T59_48T02;
872 } 872 }
@@ -895,16 +895,16 @@ try_isa_clock:
895 } 895 }
896 896
897 if(model[5] == '0' && model[6] == '2') { 897 if(model[5] == '0' && model[6] == '2') {
898 mstk48t02_regs = (void * __iomem) 898 mstk48t02_regs = (void __iomem *)
899 (((u64)clk_reg[0].phys_addr) | 899 (((u64)clk_reg[0].phys_addr) |
900 (((u64)clk_reg[0].which_io)<<32UL)); 900 (((u64)clk_reg[0].which_io)<<32UL));
901 } else if(model[5] == '0' && model[6] == '8') { 901 } else if(model[5] == '0' && model[6] == '8') {
902 mstk48t08_regs = (void * __iomem) 902 mstk48t08_regs = (void __iomem *)
903 (((u64)clk_reg[0].phys_addr) | 903 (((u64)clk_reg[0].phys_addr) |
904 (((u64)clk_reg[0].which_io)<<32UL)); 904 (((u64)clk_reg[0].which_io)<<32UL));
905 mstk48t02_regs = mstk48t08_regs + MOSTEK_48T08_48T02; 905 mstk48t02_regs = mstk48t08_regs + MOSTEK_48T08_48T02;
906 } else { 906 } else {
907 mstk48t59_regs = (void * __iomem) 907 mstk48t59_regs = (void __iomem *)
908 (((u64)clk_reg[0].phys_addr) | 908 (((u64)clk_reg[0].phys_addr) |
909 (((u64)clk_reg[0].which_io)<<32UL)); 909 (((u64)clk_reg[0].which_io)<<32UL));
910 mstk48t02_regs = mstk48t59_regs + MOSTEK_48T59_48T02; 910 mstk48t02_regs = mstk48t59_regs + MOSTEK_48T59_48T02;
@@ -1092,7 +1092,7 @@ unsigned long long sched_clock(void)
1092static int set_rtc_mmss(unsigned long nowtime) 1092static int set_rtc_mmss(unsigned long nowtime)
1093{ 1093{
1094 int real_seconds, real_minutes, chip_minutes; 1094 int real_seconds, real_minutes, chip_minutes;
1095 void * __iomem mregs = mstk48t02_regs; 1095 void __iomem *mregs = mstk48t02_regs;
1096#ifdef CONFIG_PCI 1096#ifdef CONFIG_PCI
1097 unsigned long dregs = ds1287_regs; 1097 unsigned long dregs = ds1287_regs;
1098#else 1098#else
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);
diff --git a/include/asm-sparc64/mostek.h b/include/asm-sparc64/mostek.h
index 1f9b1356a48e..09b5aba6678a 100644
--- a/include/asm-sparc64/mostek.h
+++ b/include/asm-sparc64/mostek.h
@@ -38,7 +38,7 @@
38 * 38 *
39 * We now deal with physical addresses for I/O to the chip. -DaveM 39 * We now deal with physical addresses for I/O to the chip. -DaveM
40 */ 40 */
41static __inline__ u8 mostek_read(void * __iomem addr) 41static __inline__ u8 mostek_read(void __iomem *addr)
42{ 42{
43 u8 ret; 43 u8 ret;
44 44
@@ -48,7 +48,7 @@ static __inline__ u8 mostek_read(void * __iomem addr)
48 return ret; 48 return ret;
49} 49}
50 50
51static __inline__ void mostek_write(void * __iomem addr, u8 val) 51static __inline__ void mostek_write(void __iomem *addr, u8 val)
52{ 52{
53 __asm__ __volatile__("stba %0, [%1] %2" 53 __asm__ __volatile__("stba %0, [%1] %2"
54 : /* no outputs */ 54 : /* no outputs */
@@ -67,7 +67,7 @@ static __inline__ void mostek_write(void * __iomem addr, u8 val)
67#define MOSTEK_YEAR 0x07ffUL 67#define MOSTEK_YEAR 0x07ffUL
68 68
69extern spinlock_t mostek_lock; 69extern spinlock_t mostek_lock;
70extern void *__iomem mstk48t02_regs; 70extern void __iomem *mstk48t02_regs;
71 71
72/* Control register values. */ 72/* Control register values. */
73#define MSTK_CREG_WRITE 0x80 /* Must set this before placing values. */ 73#define MSTK_CREG_WRITE 0x80 /* Must set this before placing values. */