Skip to content

Commit

Permalink
sh: cleanup struct irqaction initializers.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Thomas Gleixner authored and Paul Mundt committed Oct 3, 2007
1 parent 008d50f commit e1fb455
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
7 changes: 5 additions & 2 deletions arch/sh/boards/se/7343/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ shmse_irq_demux(int irq)
*
* We configure IRQ5 as a cascade IRQ.
*/
static struct irqaction irq5 = { no_action, 0, CPU_MASK_NONE, "IRQ5-cascade",
NULL, NULL};
static struct irqaction irq5 = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "IRQ5-cascade",
};

static struct ipr_data se7343_irq5_ipr_map[] = {
{ IRQ5_IRQ, IRQ5_IPR_ADDR+2, IRQ5_IPR_POS, IRQ5_PRIORITY },
Expand Down
7 changes: 6 additions & 1 deletion arch/sh/cchips/hd6446x/hd64461.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ int hd64461_irq_demux(int irq)
return irq;
}

static struct irqaction irq0 = { hd64461_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "HD64461", NULL, NULL };
static struct irqaction irq0 = {
.handler = hd64461_interrupt,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "HD64461",
};

int __init setup_hd64461(void)
{
Expand Down
7 changes: 6 additions & 1 deletion arch/sh/cchips/hd6446x/hd64465/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ int hd64465_irq_demux(int irq)
return irq;
}

static struct irqaction irq0 = { hd64465_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "HD64465", NULL, NULL};
static struct irqaction irq0 = {
.handler = hd64465_interrupt,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "HD64465",
};


static int __init setup_hd64465(void)
Expand Down

0 comments on commit e1fb455

Please sign in to comment.