clk: socfpga: Remove socfpga_init_clocks
authorDinh Nguyen <dinguyen@altera.com>
Thu, 5 Dec 2013 17:34:48 +0000 (11:34 -0600)
committerMike Turquette <mturquette@linaro.org>
Tue, 18 Feb 2014 22:08:09 +0000 (14:08 -0800)
The only thing that socfpga_init_clocks was doing is setting up the smp_twd clk.
Now that twd-timer's clock phandle is populated in the DTS, we can remove
this function.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-socfpga/socfpga.c
drivers/clk/socfpga/clk.c

index c43c28118092515e511679b506c1f4a7cb47990d..d86231e11b3449665b02a030b849e9cd75cddb0d 100644 (file)
@@ -102,7 +102,6 @@ static void __init socfpga_cyclone5_init(void)
 {
        l2x0_of_init(0, ~0UL);
        of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
-       socfpga_init_clocks();
 }
 
 static const char *altera_dt_match[] = {
index cba21a0823b6c308461165606ab87dbd1eff5fd2..75b6257f61b96e383d85114a71914f2dd11bf5fa 100644 (file)
@@ -347,13 +347,3 @@ static void __init socfpga_clkmgr_init(struct device_node *node)
 }
 CLK_OF_DECLARE(socfpga_mgr, "altr,clk-mgr", socfpga_clkmgr_init);
 
-void __init socfpga_init_clocks(void)
-{
-       struct clk *clk;
-       int ret;
-
-       clk = clk_register_fixed_factor(NULL, "smp_twd", "mpuclk", 0, 1, 4);
-       ret = clk_register_clkdev(clk, NULL, "smp_twd");
-       if (ret)
-               pr_err("smp_twd alias not registered\n");
-}