[ARM] 2917/1: Make IXP4xx mach_desc's depend on config options

Patch from Deepak Saxena

Building a kernel for IXDP425 currently includes the machine descriptors
for IXDP465 and PRPMC1100 even if those machines are not configured.
This means we can build a kernel that boots on those machines even
though the machine_is_xxx() macro will always return 0 and other bits
such as PCI won't be compiled in. This can lead to many wasted hours
wondering what you have done to your kernel to make it randomly crash
thus requireing large quantities of beer to be consumed. While I am
all for consumption of large quantities of beer, there are better
reasons to do so then stupid kernel bugs.

Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Deepak Saxena and committed by Russell King e0a20089 7f8c0fd7

+6
+6
arch/arm/mach-ixp4xx/ixdp425-setup.c
··· 123 123 platform_add_devices(ixdp425_devices, ARRAY_SIZE(ixdp425_devices)); 124 124 } 125 125 126 + #ifdef CONFIG_ARCH_IXDP465 126 127 MACHINE_START(IXDP425, "Intel IXDP425 Development Platform") 127 128 /* Maintainer: MontaVista Software, Inc. */ 128 129 .phys_ram = PHYS_OFFSET, ··· 135 134 .boot_params = 0x0100, 136 135 .init_machine = ixdp425_init, 137 136 MACHINE_END 137 + #endif 138 138 139 + #ifdef CONFIG_MACH_IXDP465 139 140 MACHINE_START(IXDP465, "Intel IXDP465 Development Platform") 140 141 /* Maintainer: MontaVista Software, Inc. */ 141 142 .phys_ram = PHYS_OFFSET, ··· 149 146 .boot_params = 0x0100, 150 147 .init_machine = ixdp425_init, 151 148 MACHINE_END 149 + #endif 152 150 151 + #ifdef CONFIG_ARCH_PRPMC1100 153 152 MACHINE_START(IXCDP1100, "Intel IXCDP1100 Development Platform") 154 153 /* Maintainer: MontaVista Software, Inc. */ 155 154 .phys_ram = PHYS_OFFSET, ··· 163 158 .boot_params = 0x0100, 164 159 .init_machine = ixdp425_init, 165 160 MACHINE_END 161 + #endif 166 162 167 163 /* 168 164 * Avila is functionally equivalent to IXDP425 except that it adds