Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: PNX833x: PNX8335_PCI_ETHERNET_INT depends on CONFIG_SOC_PNX8335

The PNX8335_PCI_ETHERNET_INT macro is defined in
arch/mips/include/asm/mach-pnx833x/irq-mapping.h
only if CONFIG_SOC_PNX8335 is selected.

Fixes the following randconfig problem:
arch/mips/pnx833x/common/platform.c:210:12:
error: 'PNX8335_PIC_ETHERNET_INT' undeclared here
(not in a function)

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5585/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Markos Chandras and committed by
Ralf Baechle
3ac3bcb9 c095ba72

+2
+2
arch/mips/pnx833x/common/platform.c
··· 206 206 .end = PNX8335_IP3902_PORTS_END, 207 207 .flags = IORESOURCE_MEM, 208 208 }, 209 + #ifdef CONFIG_SOC_PNX8335 209 210 [1] = { 210 211 .start = PNX8335_PIC_ETHERNET_INT, 211 212 .end = PNX8335_PIC_ETHERNET_INT, 212 213 .flags = IORESOURCE_IRQ, 213 214 }, 215 + #endif 214 216 }; 215 217 216 218 static struct platform_device pnx833x_ethernet_device = {