Patchwork ARM: i.MX: Register clock i.MX5x wire1 device

login
register
mail settings
Submitter Alexander Shiyan
Date June 18, 2013, 9:08 a.m.
Message ID <1371546536-19386-1-git-send-email-shc_work@mail.ru>
Download mbox | patch
Permalink /patch/252190/
State New
Headers show

Comments

Alexander Shiyan - June 18, 2013, 9:08 a.m.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/mach-imx/clk-imx51-imx53.c | 1 +
 1 file changed, 1 insertion(+)
Sascha Hauer - June 18, 2013, 7:26 p.m.
On Tue, Jun 18, 2013 at 01:08:56PM +0400, Alexander Shiyan wrote:
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  arch/arm/mach-imx/clk-imx51-imx53.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-imx/clk-imx51-imx53.c b/arch/arm/mach-imx/clk-imx51-imx53.c
> index 9afac26..7da8f0d 100644
> --- a/arch/arm/mach-imx/clk-imx51-imx53.c
> +++ b/arch/arm/mach-imx/clk-imx51-imx53.c
> @@ -339,6 +339,7 @@ static void __init mx5_clocks_common_init(unsigned long rate_ckil,
>  	clk_register_clkdev(clk[epit1_hf_gate], "per", "imx-epit.0");
>  	clk_register_clkdev(clk[epit2_ipg_gate], "ipg", "imx-epit.1");
>  	clk_register_clkdev(clk[epit2_hf_gate], "per", "imx-epit.1");
> +	clk_register_clkdev(clk[owire_gate], NULL, "mxc_w1.0");

Why are you adding platform device clock lookups? You should be using
devicetree.

Sascha

Patch

diff --git a/arch/arm/mach-imx/clk-imx51-imx53.c b/arch/arm/mach-imx/clk-imx51-imx53.c
index 9afac26..7da8f0d 100644
--- a/arch/arm/mach-imx/clk-imx51-imx53.c
+++ b/arch/arm/mach-imx/clk-imx51-imx53.c
@@ -339,6 +339,7 @@  static void __init mx5_clocks_common_init(unsigned long rate_ckil,
 	clk_register_clkdev(clk[epit1_hf_gate], "per", "imx-epit.0");
 	clk_register_clkdev(clk[epit2_ipg_gate], "ipg", "imx-epit.1");
 	clk_register_clkdev(clk[epit2_hf_gate], "per", "imx-epit.1");
+	clk_register_clkdev(clk[owire_gate], NULL, "mxc_w1.0");
 
 	/* Set SDHC parents to be PLL2 */
 	clk_set_parent(clk[esdhc_a_sel], clk[pll2_sw]);