From: Thomas Petazzoni <tpetazzoni@xxxxxx> Using the new condsections infrastructure, get rid of the unused code/data for OMAP2 and OMAP4 when booting on BeagleBoard OMAP3. Signed-off-by: Thomas Petazzoni <t-petazzoni@xxxxxx> --- arch/arm/mach-omap2/board-omap3beagle.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 14f4224..900964a 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -23,6 +23,7 @@ #include <linux/gpio.h> #include <linux/input.h> #include <linux/gpio_keys.h> +#include <linux/condsections.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> @@ -581,6 +582,9 @@ static void __init omap3_beagle_init(void) omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); beagle_display_init(); + + free_unused_cond_section("omap2"); + free_unused_cond_section("omap4"); } MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board") -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html