Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://repo.or.cz/cris-mirror
Browse files Browse the repository at this point in the history
* 'for-linus' of git://repo.or.cz/cris-mirror:
  cris: Fixup last users of irq_chip->typename
  CRIS v32: Should index be positive?
  • Loading branch information
Linus Torvalds committed Mar 1, 2010
2 parents 4805a1b + d8fe989 commit 8098a7e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion arch/cris/arch-v10/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void end_crisv10_irq(unsigned int irq)
}

static struct irq_chip crisv10_irq_type = {
.typename = "CRISv10",
.name = "CRISv10",
.startup = startup_crisv10_irq,
.shutdown = shutdown_crisv10_irq,
.enable = enable_crisv10_irq,
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/arch-v32/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ int set_affinity_crisv32_irq(unsigned int irq, const struct cpumask *dest)
}

static struct irq_chip crisv32_irq_type = {
.typename = "CRISv32",
.name = "CRISv32",
.startup = startup_crisv32_irq,
.shutdown = shutdown_crisv32_irq,
.enable = enable_crisv32_irq,
Expand Down
4 changes: 2 additions & 2 deletions arch/cris/arch-v32/kernel/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode mode)

crisv32_pinmux_init();

if (port > PORTS)
if (port > PORTS || port < 0)
return -EINVAL;

spin_lock_irqsave(&pinmux_lock, flags);
Expand Down Expand Up @@ -197,7 +197,7 @@ crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)

crisv32_pinmux_init();

if (port > PORTS)
if (port > PORTS || port < 0)
return -EINVAL;

spin_lock_irqsave(&pinmux_lock, flags);
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/arch-v32/mach-a3/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)

crisv32_pinmux_init();

if (port > PORTS)
if (port > PORTS || port < 0)
return -EINVAL;

spin_lock_irqsave(&pinmux_lock, flags);
Expand Down
4 changes: 2 additions & 2 deletions arch/cris/arch-v32/mach-fs/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode mode)

crisv32_pinmux_init();

if (port > PORTS)
if (port > PORTS || port < 0)
return -EINVAL;

spin_lock_irqsave(&pinmux_lock, flags);
Expand Down Expand Up @@ -195,7 +195,7 @@ int crisv32_pinmux_dealloc(int port, int first_pin, int last_pin)

crisv32_pinmux_init();

if (port > PORTS)
if (port > PORTS || port < 0)
return -EINVAL;

spin_lock_irqsave(&pinmux_lock, flags);
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int show_interrupts(struct seq_file *p, void *v)
for_each_online_cpu(j)
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
#endif
seq_printf(p, " %14s", irq_desc[i].chip->typename);
seq_printf(p, " %14s", irq_desc[i].chip->name);
seq_printf(p, " %s", action->name);

for (action=action->next; action; action = action->next)
Expand Down

0 comments on commit 8098a7e

Please sign in to comment.