Skip to content

Commit 891ab06

Browse files
sudipm-mukherjeeralfbaechle
authored andcommitted
MIPS: Lantiq: Fix build failure
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 <sudip.mukherjee@codethink.co.uk> Acked-by: John Crispin <john@phrozen.org> Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/13684/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 0d8d83d commit 891ab06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/mips/lantiq/irq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void ltq_shutdown_eiu_irq(struct irq_data *d)
206206
}
207207

208208
static struct irq_chip ltq_irq_type = {
209-
"icu",
209+
.name = "icu",
210210
.irq_enable = ltq_enable_irq,
211211
.irq_disable = ltq_disable_irq,
212212
.irq_unmask = ltq_enable_irq,
@@ -216,7 +216,7 @@ static struct irq_chip ltq_irq_type = {
216216
};
217217

218218
static struct irq_chip ltq_eiu_type = {
219-
"eiu",
219+
.name = "eiu",
220220
.irq_startup = ltq_startup_eiu_irq,
221221
.irq_shutdown = ltq_shutdown_eiu_irq,
222222
.irq_enable = ltq_enable_irq,

0 commit comments

Comments
 (0)