]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dove: remove legacy pcie and clock init
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 12 Aug 2013 18:46:55 +0000 (20:46 +0200)
committerJason Cooper <jason@lakedaemon.net>
Tue, 8 Oct 2013 15:17:55 +0000 (15:17 +0000)
With DT support for PCIe controllers on Dove, we can now remove the
legacy pcie init and the last remaining clock workaround for its clocks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-dove/board-dt.c

index 1efbe1d51b7fe5d7298d5e829418db5425879088..9a116d796323cbe3649f70899af04efdc4c66a4d 100644 (file)
 #include <plat/irq.h>
 #include "common.h"
 
-/*
- * There are still devices that doesn't even know about DT,
- * get clock gates here and add a clock lookup.
- */
-static void __init dove_legacy_clk_init(void)
-{
-       struct device_node *np = of_find_compatible_node(NULL, NULL,
-                                        "marvell,dove-gating-clock");
-       struct of_phandle_args clkspec;
-
-       clkspec.np = np;
-       clkspec.args_count = 1;
-
-       clkspec.args[0] = CLOCK_GATING_BIT_PCIE0;
-       orion_clkdev_add("0", "pcie",
-                        of_clk_get_from_provider(&clkspec));
-
-       clkspec.args[0] = CLOCK_GATING_BIT_PCIE1;
-       orion_clkdev_add("1", "pcie",
-                        of_clk_get_from_provider(&clkspec));
-}
-
 static void __init dove_dt_time_init(void)
 {
        of_clk_init(NULL);
@@ -59,13 +37,6 @@ static void __init dove_dt_init(void)
        tauros2_init(0);
 #endif
        BUG_ON(mvebu_mbus_dt_init());
-
-       /* Setup clocks for legacy devices */
-       dove_legacy_clk_init();
-
-       /* Internal devices not ported to DT yet */
-       dove_pcie_init(1, 1);
-
        of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }