diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-28 10:57:21 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-05-29 19:49:06 -0400 |
commit | a048711c0b3701ee22efd74022cb1f548a52842c (patch) | |
tree | ad09a866cf5d8ac7bd9c2b5f7c0bd05b1f32ea03 | |
parent | d458773fb3c456d0e2e860fece8602b062e2f7a0 (diff) |
ARM: l2c: berlin: convert to generic l2c OF initialisation
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.
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-berlin/berlin.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/arch/arm/mach-berlin/berlin.c b/arch/arm/mach-berlin/berlin.c index 6709d2a6bec8..ac181c6797ee 100644 --- a/arch/arm/mach-berlin/berlin.c +++ b/arch/arm/mach-berlin/berlin.c | |||
@@ -18,16 +18,6 @@ | |||
18 | #include <asm/hardware/cache-l2x0.h> | 18 | #include <asm/hardware/cache-l2x0.h> |
19 | #include <asm/mach/arch.h> | 19 | #include <asm/mach/arch.h> |
20 | 20 | ||
21 | static void __init berlin_init_machine(void) | ||
22 | { | ||
23 | /* | ||
24 | * with DT probing for L2CCs, berlin_init_machine can be removed. | ||
25 | * Note: 88DE3005 (Armada 1500-mini) uses pl310 l2cc | ||
26 | */ | ||
27 | l2x0_of_init(0x30c00000, 0xfeffffff); | ||
28 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
29 | } | ||
30 | |||
31 | static const char * const berlin_dt_compat[] = { | 21 | static const char * const berlin_dt_compat[] = { |
32 | "marvell,berlin", | 22 | "marvell,berlin", |
33 | NULL, | 23 | NULL, |
@@ -35,5 +25,10 @@ static const char * const berlin_dt_compat[] = { | |||
35 | 25 | ||
36 | DT_MACHINE_START(BERLIN_DT, "Marvell Berlin") | 26 | DT_MACHINE_START(BERLIN_DT, "Marvell Berlin") |
37 | .dt_compat = berlin_dt_compat, | 27 | .dt_compat = berlin_dt_compat, |
38 | .init_machine = berlin_init_machine, | 28 | /* |
29 | * with DT probing for L2CCs, berlin_init_machine can be removed. | ||
30 | * Note: 88DE3005 (Armada 1500-mini) uses pl310 l2cc | ||
31 | */ | ||
32 | .l2c_aux_val = 0x30c00000, | ||
33 | .l2c_aux_mask = 0xfeffffff, | ||
39 | MACHINE_END | 34 | MACHINE_END |