Skip to contentSkip to conversation

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

PATCH New Alexander Shiyan 2 participants 2 messages Jun 18, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: i.MX: Register clock i.MX5x wire1 device

---
 arch/arm/mach-imx/clk-imx51-imx53.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/clk-imx51-imx53.c +1 -0
index 9afac26..7da8f0d 100644
@@ -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]);
Signature · 1 line
1.8.1.5
maintainer
#1 lore raw

PATCH 1/1 ARM: i.MX: Register clock i.MX5x wire1 device

Quoted 11 lines · Alexander Shiyan
---
 arch/arm/mach-imx/clk-imx51-imx53.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/clk-imx51-imx53.c +0 -0
index 9afac26..7da8f0d 100644

arch/arm/mach-imx/clk-imx51-imx53.c static void __init mx5_clocks_common_init(unsigned long rate_ckil, · line 342

Quoted 4 lines
arch/arm/mach-imx/clk-imx51-imx53.c +1 -0
@@ -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

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |