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