arm/dt: consolidate atags setup into setup_machine_atags
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 28 Apr 2011 20:27:21 +0000 (14:27 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 23 May 2011 15:30:20 +0000 (09:30 -0600)
commit6291319d4864848efc7b5d81389e2404fb478cb9
tree10f53e79940139a60a3d96f3b013ed849f4a176c
parent9eb8f6743b076b67f00776cda4330c802e157b41
arm/dt: consolidate atags setup into setup_machine_atags

In preparation for adding device tree support, this patch consolidates
all of the atag-specific setup into a single function.

v5: - drop double printk("Machine; %s\n", ...); call.
    - leave copying boot_command_line in setup_arch() since it isn't
      atags specific.
v4: - adapt to the removal of lookup_machine_type()
    - break out dump of machine_desc table into dump_machine_table()
      because the device tree probe code will use it.
    - Add for_each_machine_desc() macro

Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/include/asm/mach/arch.h
arch/arm/kernel/setup.c