Skip to content

Commit b55a7a5

Browse files
committed
Merge tag 'mvebu_gpio_fixes_for_v3.7' of git://git.infradead.org/users/jcooper/linux into fixes
From Jason Cooper: - missing break;s from converting if{}s to switch{} * tag 'mvebu_gpio_fixes_for_v3.7' of git://git.infradead.org/users/jcooper/linux: gpio: mvebu: Add missing breaks in mvebu_gpio_irq_set_type
2 parents 327f81c + 7cf8c9f commit b55a7a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpio/gpio-mvebu.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,13 @@ static int mvebu_gpio_irq_set_type(struct irq_data *d, unsigned int type)
381381
u = readl_relaxed(mvebu_gpioreg_in_pol(mvchip));
382382
u &= ~(1 << pin);
383383
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
384+
break;
384385
case IRQ_TYPE_EDGE_FALLING:
385386
case IRQ_TYPE_LEVEL_LOW:
386387
u = readl_relaxed(mvebu_gpioreg_in_pol(mvchip));
387388
u |= 1 << pin;
388389
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
390+
break;
389391
case IRQ_TYPE_EDGE_BOTH: {
390392
u32 v;
391393

@@ -401,6 +403,7 @@ static int mvebu_gpio_irq_set_type(struct irq_data *d, unsigned int type)
401403
else
402404
u &= ~(1 << pin); /* rising */
403405
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
406+
break;
404407
}
405408
}
406409
return 0;

0 commit comments

Comments
 (0)