Skip to content

Commit

Permalink
MIPS: Lantiq: Fix build failure
Browse files Browse the repository at this point in the history
Some configs of mips like xway_defconffig are failing with the error:
arch/mips/lantiq/irq.c:209:2: error: initialization from incompatible
pointer type [-Werror]
  "icu",
  ^
arch/mips/lantiq/irq.c:209:2: error: (near initialization for
'ltq_irq_type.parent_device') [-Werror]
arch/mips/lantiq/irq.c:219:2: error: initialization from incompatible
pointer type [-Werror]
  "eiu",
  ^
arch/mips/lantiq/irq.c:219:2: error: (near initialization for
'ltq_eiu_type.parent_device') [-Werror]

The first member of the "struct irq" is no longer a pointer for the
name.

Fixes: be45beb ("genirq: Add runtime power management support for IRQ chips")
Signed-off-by: Sudip Mukherjee <[email protected]>
Acked-by: John Crispin <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/13684/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
sudipm-mukherjee authored and ralfbaechle committed Aug 3, 2016
1 parent 0d8d83d commit 891ab06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/lantiq/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static void ltq_shutdown_eiu_irq(struct irq_data *d)
}

static struct irq_chip ltq_irq_type = {
"icu",
.name = "icu",
.irq_enable = ltq_enable_irq,
.irq_disable = ltq_disable_irq,
.irq_unmask = ltq_enable_irq,
Expand All @@ -216,7 +216,7 @@ static struct irq_chip ltq_irq_type = {
};

static struct irq_chip ltq_eiu_type = {
"eiu",
.name = "eiu",
.irq_startup = ltq_startup_eiu_irq,
.irq_shutdown = ltq_shutdown_eiu_irq,
.irq_enable = ltq_enable_irq,
Expand Down

0 comments on commit 891ab06

Please sign in to comment.