diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-05-27 09:04:46 (GMT) |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-07-18 08:10:11 (GMT) |
commit | f4696752b1e966ea5b3a53ec088a237780612fc0 (patch) | |
tree | 40d70b9eeabc908497092fb97d8fc1ae6a6df8c3 /arch/arm/mach-imx/clk-imx1.c | |
parent | 186d28c1e057295e75bdac19562096620624f4c3 (diff) | |
download | linux-f4696752b1e966ea5b3a53ec088a237780612fc0.tar.xz |
ARM: i.MX: Use of_clk_get_by_name() for timer clocks for DT case.
Use of_clk_get_by_name() for timer clocks for DT case.
This patch eliminates a lot of unneeded clk_register_clkdev()
calls for GPT.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx1.c')
-rw-r--r-- | arch/arm/mach-imx/clk-imx1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/clk-imx1.c b/arch/arm/mach-imx/clk-imx1.c index e9c391b..96b1eb6 100644 --- a/arch/arm/mach-imx/clk-imx1.c +++ b/arch/arm/mach-imx/clk-imx1.c @@ -76,9 +76,6 @@ static void __init _mx1_clocks_init(unsigned long fref) if (IS_ERR(clk[i])) pr_err("imx1 clk %d: register failed with %ld\n", i, PTR_ERR(clk[i])); - - clk_register_clkdev(clk[IMX1_CLK_PER1], "per", "imx-gpt.0"); - clk_register_clkdev(clk[IMX1_CLK_HCLK], "ipg", "imx-gpt.0"); } int __init mx1_clocks_init(unsigned long fref) @@ -87,6 +84,8 @@ int __init mx1_clocks_init(unsigned long fref) _mx1_clocks_init(fref); + clk_register_clkdev(clk[IMX1_CLK_PER1], "per", "imx-gpt.0"); + clk_register_clkdev(clk[IMX1_CLK_HCLK], "ipg", "imx-gpt.0"); clk_register_clkdev(clk[IMX1_CLK_DMA_GATE], "ahb", "imx1-dma"); clk_register_clkdev(clk[IMX1_CLK_HCLK], "ipg", "imx1-dma"); clk_register_clkdev(clk[IMX1_CLK_PER1], "per", "imx1-uart.0"); |