diff options
| -rw-r--r-- | arch/mips/include/asm/uaccess.h | 2 | ||||
| -rw-r--r-- | arch/mips/sgi-ip32/ip32-reset.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h index 8de858f5449f..c2d53c18fd36 100644 --- a/arch/mips/include/asm/uaccess.h +++ b/arch/mips/include/asm/uaccess.h | |||
| @@ -956,7 +956,7 @@ __clear_user(void __user *addr, __kernel_size_t size) | |||
| 956 | void __user * __cl_addr = (addr); \ | 956 | void __user * __cl_addr = (addr); \ |
| 957 | unsigned long __cl_size = (n); \ | 957 | unsigned long __cl_size = (n); \ |
| 958 | if (__cl_size && access_ok(VERIFY_WRITE, \ | 958 | if (__cl_size && access_ok(VERIFY_WRITE, \ |
| 959 | ((unsigned long)(__cl_addr)), __cl_size)) \ | 959 | __cl_addr, __cl_size)) \ |
| 960 | __cl_size = __clear_user(__cl_addr, __cl_size); \ | 960 | __cl_size = __clear_user(__cl_addr, __cl_size); \ |
| 961 | __cl_size; \ | 961 | __cl_size; \ |
| 962 | }) | 962 | }) |
diff --git a/arch/mips/sgi-ip32/ip32-reset.c b/arch/mips/sgi-ip32/ip32-reset.c index 667da932b7b2..9b95d80ebc6e 100644 --- a/arch/mips/sgi-ip32/ip32-reset.c +++ b/arch/mips/sgi-ip32/ip32-reset.c | |||
| @@ -53,7 +53,7 @@ static inline void ip32_machine_halt(void) | |||
| 53 | 53 | ||
| 54 | static void ip32_machine_power_off(void) | 54 | static void ip32_machine_power_off(void) |
| 55 | { | 55 | { |
| 56 | volatile unsigned char reg_a, xctrl_a, xctrl_b; | 56 | unsigned char reg_a, xctrl_a, xctrl_b; |
| 57 | 57 | ||
| 58 | disable_irq(MACEISA_RTC_IRQ); | 58 | disable_irq(MACEISA_RTC_IRQ); |
| 59 | reg_a = CMOS_READ(RTC_REG_A); | 59 | reg_a = CMOS_READ(RTC_REG_A); |
| @@ -91,9 +91,10 @@ static void blink_timeout(unsigned long data) | |||
| 91 | 91 | ||
| 92 | static void debounce(unsigned long data) | 92 | static void debounce(unsigned long data) |
| 93 | { | 93 | { |
| 94 | volatile unsigned char reg_a, reg_c, xctrl_a; | 94 | unsigned char reg_a, reg_c, xctrl_a; |
| 95 | 95 | ||
| 96 | reg_c = CMOS_READ(RTC_INTR_FLAGS); | 96 | reg_c = CMOS_READ(RTC_INTR_FLAGS); |
| 97 | reg_a = CMOS_READ(RTC_REG_A); | ||
| 97 | CMOS_WRITE(reg_a | DS_REGA_DV0, RTC_REG_A); | 98 | CMOS_WRITE(reg_a | DS_REGA_DV0, RTC_REG_A); |
| 98 | wbflush(); | 99 | wbflush(); |
| 99 | xctrl_a = CMOS_READ(DS_B1_XCTRL4A); | 100 | xctrl_a = CMOS_READ(DS_B1_XCTRL4A); |
| @@ -137,7 +138,7 @@ static inline void ip32_power_button(void) | |||
| 137 | 138 | ||
| 138 | static irqreturn_t ip32_rtc_int(int irq, void *dev_id) | 139 | static irqreturn_t ip32_rtc_int(int irq, void *dev_id) |
| 139 | { | 140 | { |
| 140 | volatile unsigned char reg_c; | 141 | unsigned char reg_c; |
| 141 | 142 | ||
| 142 | reg_c = CMOS_READ(RTC_INTR_FLAGS); | 143 | reg_c = CMOS_READ(RTC_INTR_FLAGS); |
| 143 | if (!(reg_c & RTC_IRQF)) { | 144 | if (!(reg_c & RTC_IRQF)) { |
