ARM: l2c: bcm_5301x: convert to generic l2c OF initialisation
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 Apr 2014 14:27:59 +0000 (15:27 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 May 2014 23:49:04 +0000 (00:49 +0100)
Remove the explicit call to l2x0_of_init(), converting to the generic
infrastructure instead.  We can remove the explicit machine init too
as this becomes identical to the generic version.

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

index 6bc9c31b1b0b6243b876b1abfa5ad81bad686290..e9bcbdbce55550e04e83a792d55b2eba65f94c32 100644 (file)
@@ -43,19 +43,14 @@ static void __init bcm5301x_init_early(void)
                        "imprecise external abort");
 }
 
-static void __init bcm5301x_dt_init(void)
-{
-       l2x0_of_init(0, ~0);
-       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
-}
-
 static const char __initconst *bcm5301x_dt_compat[] = {
        "brcm,bcm4708",
        NULL,
 };
 
 DT_MACHINE_START(BCM5301X, "BCM5301X")
+       .l2c_aux_val    = 0,
+       .l2c_aux_mask   = ~0,
        .init_early     = bcm5301x_init_early,
-       .init_machine   = bcm5301x_dt_init,
        .dt_compat      = bcm5301x_dt_compat,
 MACHINE_END
This page took 0.024389 seconds and 5 git commands to generate.