--- zzzz-none-000/linux-3.10.107/arch/arm/mach-clps711x/board-clep7312.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/mach-clps711x/board-clep7312.c 2021-02-04 17:41:59.000000000 +0000 @@ -18,29 +18,28 @@ #include #include #include +#include #include #include #include #include "common.h" +#include "devices.h" static void __init -fixup_clep7312(struct tag *tags, char **cmdline, struct meminfo *mi) +fixup_clep7312(struct tag *tags, char **cmdline) { - mi->nr_banks=1; - mi->bank[0].start = 0xc0000000; - mi->bank[0].size = 0x01000000; + memblock_add(0xc0000000, 0x01000000); } MACHINE_START(CLEP7212, "Cirrus Logic 7212/7312") /* Maintainer: Nobody */ .atag_offset = 0x0100, - .nr_irqs = CLPS711X_NR_IRQS, .fixup = fixup_clep7312, .map_io = clps711x_map_io, .init_irq = clps711x_init_irq, .init_time = clps711x_timer_init, - .handle_irq = clps711x_handle_irq, + .init_machine = clps711x_devices_init, .restart = clps711x_restart, MACHINE_END