ARM: l2c: socfpga: convert to generic l2c OF initialisation
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 Apr 2014 14:55:59 +0000 (15:55 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 May 2014 23:50:04 +0000 (00:50 +0100)
Remove the explicit call to l2x0_of_init(), converting to the generic
infrastructure instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-socfpga/socfpga.c

index 9bbb8177f24767a1913e40285b2c20ae002e1a74..adbf38314ca8c47aac8a52dd70ce68c46a0e9647 100644 (file)
@@ -98,22 +98,17 @@ static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)
        writel(temp, rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL);
 }
 
-static void __init socfpga_cyclone5_init(void)
-{
-       l2x0_of_init(0, ~0);
-       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
-}
-
 static const char *altera_dt_match[] = {
        "altr,socfpga",
        NULL
 };
 
 DT_MACHINE_START(SOCFPGA, "Altera SOCFPGA")
+       .l2c_aux_val    = 0,
+       .l2c_aux_mask   = ~0,
        .smp            = smp_ops(socfpga_smp_ops),
        .map_io         = socfpga_map_io,
        .init_irq       = socfpga_init_irq,
-       .init_machine   = socfpga_cyclone5_init,
        .restart        = socfpga_cyclone5_restart,
        .dt_compat      = altera_dt_match,
 MACHINE_END
This page took 0.028388 seconds and 5 git commands to generate.