ARM: 7602/1: Pass real "__machine_arch_type" variable to setup_machine_tags() procedure
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 12 Dec 2012 07:32:11 +0000 (08:32 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 16 Dec 2012 10:04:24 +0000 (10:04 +0000)
This modification is needed to proper boot the custom machines with
the IDs that are not described in the mach-types.h table.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c

index 9a89bf4aefe1e35ff8000a57f0d7b07b9219997c..3f6cbb2e3edae392f2b73520b89b6ee3b19e8437 100644 (file)
@@ -733,7 +733,7 @@ void __init setup_arch(char **cmdline_p)
        setup_processor();
        mdesc = setup_machine_fdt(__atags_pointer);
        if (!mdesc)
-               mdesc = setup_machine_tags(__atags_pointer, machine_arch_type);
+               mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type);
        machine_desc = mdesc;
        machine_name = mdesc->name;