Skip to content

Commit 8098a7e

Browse files
committed
Merge branch 'for-linus' of git://repo.or.cz/cris-mirror
* 'for-linus' of git://repo.or.cz/cris-mirror: cris: Fixup last users of irq_chip->typename CRIS v32: Should index be positive?
2 parents 4805a1b + d8fe989 commit 8098a7e

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎arch/cris/arch-v10/kernel/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static void end_crisv10_irq(unsigned int irq)
133133
}
134134

135135
static struct irq_chip crisv10_irq_type = {
136-
.typename = "CRISv10",
136+
.name = "CRISv10",
137137
.startup = startup_crisv10_irq,
138138
.shutdown = shutdown_crisv10_irq,
139139
.enable = enable_crisv10_irq,

‎arch/cris/arch-v32/kernel/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int set_affinity_crisv32_irq(unsigned int irq, const struct cpumask *dest)
336336
}
337337

338338
static struct irq_chip crisv32_irq_type = {
339-
.typename = "CRISv32",
339+
.name = "CRISv32",
340340
.startup = startup_crisv32_irq,
341341
.shutdown = shutdown_crisv32_irq,
342342
.enable = enable_crisv32_irq,

‎arch/cris/arch-v32/kernel/pinmux.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode mode)
5454

5555
crisv32_pinmux_init();
5656

57-
if (port > PORTS)
57+
if (port > PORTS || port < 0)
5858
return -EINVAL;
5959

6060
spin_lock_irqsave(&pinmux_lock, flags);
@@ -197,7 +197,7 @@ crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)
197197

198198
crisv32_pinmux_init();
199199

200-
if (port > PORTS)
200+
if (port > PORTS || port < 0)
201201
return -EINVAL;
202202

203203
spin_lock_irqsave(&pinmux_lock, flags);

‎arch/cris/arch-v32/mach-a3/pinmux.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)
242242

243243
crisv32_pinmux_init();
244244

245-
if (port > PORTS)
245+
if (port > PORTS || port < 0)
246246
return -EINVAL;
247247

248248
spin_lock_irqsave(&pinmux_lock, flags);

‎arch/cris/arch-v32/mach-fs/pinmux.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode mode)
5454

5555
crisv32_pinmux_init();
5656

57-
if (port > PORTS)
57+
if (port > PORTS || port < 0)
5858
return -EINVAL;
5959

6060
spin_lock_irqsave(&pinmux_lock, flags);
@@ -195,7 +195,7 @@ int crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)
195195

196196
crisv32_pinmux_init();
197197

198-
if (port > PORTS)
198+
if (port > PORTS || port < 0)
199199
return -EINVAL;
200200

201201
spin_lock_irqsave(&pinmux_lock, flags);

‎arch/cris/kernel/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int show_interrupts(struct seq_file *p, void *v)
6363
for_each_online_cpu(j)
6464
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
6565
#endif
66-
seq_printf(p, " %14s", irq_desc[i].chip->typename);
66+
seq_printf(p, " %14s", irq_desc[i].chip->name);
6767
seq_printf(p, " %s", action->name);
6868

6969
for (action=action->next; action; action = action->next)

0 commit comments

Comments
 (0)