Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ac3bcb9 authored by Markos Chandras's avatar Markos Chandras Committed by Ralf Baechle
Browse files

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: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Acked-by: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5585/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c095ba72
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -206,11 +206,13 @@ static struct resource pnx833x_ethernet_resources[] = {
		.end   = PNX8335_IP3902_PORTS_END,
		.end   = PNX8335_IP3902_PORTS_END,
		.flags = IORESOURCE_MEM,
		.flags = IORESOURCE_MEM,
	},
	},
#ifdef CONFIG_SOC_PNX8335
	[1] = {
	[1] = {
		.start = PNX8335_PIC_ETHERNET_INT,
		.start = PNX8335_PIC_ETHERNET_INT,
		.end   = PNX8335_PIC_ETHERNET_INT,
		.end   = PNX8335_PIC_ETHERNET_INT,
		.flags = IORESOURCE_IRQ,
		.flags = IORESOURCE_IRQ,
	},
	},
#endif
};
};


static struct platform_device pnx833x_ethernet_device = {
static struct platform_device pnx833x_ethernet_device = {