Skip to contentSkip to conversation

clk: spear600: Fix adc clock device name

PATCH New Stefan Roese 2 participants 3 messages Sep 2, 2015

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

PATCH 1/1 clk: spear600: Fix adc clock device name

The device name for the adc clock is incorrect. This results in the IIO ADC driver to fail while probing for the clock. This patch fixes the name and the ADC driver is now started correctly.

Cc Vipul Kumar Samar <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Mike Turquette <[email protected]>
---
 drivers/clk/spear/spear6xx_clock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/spear/spear6xx_clock.c +1 -1
index 4f649c9..3e43244 100644
@@ -316,7 +316,7 @@ void __init spear6xx_clk_init(void __iomem *misc_base)
 	/* clock derived from apb clk */
 	clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB,
 			ADC_CLK_ENB, 0, &_lock);
-	clk_register_clkdev(clk, NULL, "adc");
+	clk_register_clkdev(clk, NULL, "d8200000.adc");
 
 	clk = clk_register_fixed_factor(NULL, "gpio0_clk", "apb_clk", 0, 1, 1);
 	clk_register_clkdev(clk, NULL, "f0100000.gpio");
Signature · 1 line
2.5.1
#1 lore raw

PATCH 1/1 clk: spear600: Fix adc clock device name

Quoted 17 lines · Stefan Roese

The device name for the adc clock is incorrect. This results in the IIO ADC driver to fail while probing for the clock. This patch fixes the name and the ADC driver is now started correctly.

Cc Vipul Kumar Samar <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Mike Turquette <[email protected]>
---
 drivers/clk/spear/spear6xx_clock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/spear/spear6xx_clock.c +0 -0
index 4f649c9..3e43244 100644

drivers/clk/spear/spear6xx_clock.c void __init spear6xx_clk_init(void __iomem *misc_base) · line 322

Quoted 8 lines
drivers/clk/spear/spear6xx_clock.c +1 -1
@@ -316,7 +316,7 @@ void __init spear6xx_clk_init(void __iomem *misc_base)
 	/* clock derived from apb clk */
 	clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB,
 			ADC_CLK_ENB, 0, &_lock);
-	clk_register_clkdev(clk, NULL, "adc");
+	clk_register_clkdev(clk, NULL, "d8200000.adc");
 
 	clk = clk_register_fixed_factor(NULL, "gpio0_clk", "apb_clk", 0, 1, 1);
 	clk_register_clkdev(clk, NULL, "f0100000.gpio");

Sigh. Its fixed for all other boards, but this.

Signature · 1 line
viresh
#2 lore raw

PATCH 1/1 clk: spear600: Fix adc clock device name

Quoted 24 lines · Viresh Kumar
Quoted 23 lines · Stefan Roese

The device name for the adc clock is incorrect. This results in the IIO ADC driver to fail while probing for the clock. This patch fixes the name and the ADC driver is now started correctly.

Cc Vipul Kumar Samar <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Mike Turquette <[email protected]>
---
 drivers/clk/spear/spear6xx_clock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/spear/spear6xx_clock.c +1 -1
index 4f649c9..3e43244 100644
@@ -316,7 +316,7 @@ void __init spear6xx_clk_init(void __iomem *misc_base)
 	/* clock derived from apb clk */
 	clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB,
 			ADC_CLK_ENB, 0, &_lock);
-	clk_register_clkdev(clk, NULL, "adc");
+	clk_register_clkdev(clk, NULL, "d8200000.adc");
 
Quoted 6 lines

drivers/clk/spear/spear6xx_clock.c void __init spear6xx_clk_init(void __iomem *misc_base) · line 322

Quoted 2 lines
drivers/clk/spear/spear6xx_clock.c +0 -0
 	clk = clk_register_fixed_factor(NULL, "gpio0_clk", "apb_clk", 0, 1, 1);
 	clk_register_clkdev(clk, NULL, "f0100000.gpio");

Sigh. Its fixed for all other boards, but this.

Sending to Mike's updated email id.

Signature · 1 line
viresh