diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/rb532/gpio.c | 5 | ||||
-rw-r--r-- | arch/mips/rb532/time.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c index b2fe82dba0a5..00a1c7877bf4 100644 --- a/arch/mips/rb532/gpio.c +++ b/arch/mips/rb532/gpio.c | |||
@@ -64,7 +64,8 @@ static struct resource rb532_dev3_ctl_res[] = { | |||
64 | 64 | ||
65 | void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val) | 65 | void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val) |
66 | { | 66 | { |
67 | unsigned flags, data; | 67 | unsigned long flags; |
68 | unsigned data; | ||
68 | unsigned i = 0; | 69 | unsigned i = 0; |
69 | 70 | ||
70 | spin_lock_irqsave(&dev3.lock, flags); | 71 | spin_lock_irqsave(&dev3.lock, flags); |
@@ -90,7 +91,7 @@ EXPORT_SYMBOL(get_434_reg); | |||
90 | 91 | ||
91 | void set_latch_u5(unsigned char or_mask, unsigned char nand_mask) | 92 | void set_latch_u5(unsigned char or_mask, unsigned char nand_mask) |
92 | { | 93 | { |
93 | unsigned flags; | 94 | unsigned long flags; |
94 | 95 | ||
95 | spin_lock_irqsave(&dev3.lock, flags); | 96 | spin_lock_irqsave(&dev3.lock, flags); |
96 | 97 | ||
diff --git a/arch/mips/rb532/time.c b/arch/mips/rb532/time.c index db74edf8cefb..8e7a46855b50 100644 --- a/arch/mips/rb532/time.c +++ b/arch/mips/rb532/time.c | |||
@@ -49,8 +49,8 @@ static unsigned long __init cal_r4koff(void) | |||
49 | 49 | ||
50 | void __init plat_time_init(void) | 50 | void __init plat_time_init(void) |
51 | { | 51 | { |
52 | unsigned int est_freq, flags; | 52 | unsigned int est_freq; |
53 | unsigned long r4k_offset; | 53 | unsigned long flags, r4k_offset; |
54 | 54 | ||
55 | local_irq_save(flags); | 55 | local_irq_save(flags); |
56 | 56 | ||