diff mbox

clk: spear600: Fix adc clock device name

Message ID 1441190517-20235-1-git-send-email-sr@denx.de (mailing list archive)
State New, archived
Headers show

Commit Message

Stefan Roese Sept. 2, 2015, 10:41 a.m. UTC
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.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Vipul Kumar Samar <vipulkumar.samar@st.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Mike Turquette <mturquette@linaro.org>
---
 drivers/clk/spear/spear6xx_clock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Viresh Kumar Sept. 2, 2015, 11:02 a.m. UTC | #1
On 02-09-15, 12:41, Stefan Roese wrote:
> 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.
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Vipul Kumar Samar <vipulkumar.samar@st.com>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>
> Cc: Mike Turquette <mturquette@linaro.org>
> ---
>  drivers/clk/spear/spear6xx_clock.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/spear/spear6xx_clock.c b/drivers/clk/spear/spear6xx_clock.c
> index 4f649c9..3e43244 100644
> --- a/drivers/clk/spear/spear6xx_clock.c
> +++ b/drivers/clk/spear/spear6xx_clock.c
> @@ -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.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Viresh Kumar Sept. 2, 2015, 11:03 a.m. UTC | #2
On 02-09-15, 16:32, Viresh Kumar wrote:
> On 02-09-15, 12:41, Stefan Roese wrote:
> > 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.
> > 
> > Signed-off-by: Stefan Roese <sr@denx.de>
> > Cc: Vipul Kumar Samar <vipulkumar.samar@st.com>
> > Cc: Viresh Kumar <viresh.kumar@linaro.org>
> > Cc: Mike Turquette <mturquette@linaro.org>
> > ---
> >  drivers/clk/spear/spear6xx_clock.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/clk/spear/spear6xx_clock.c b/drivers/clk/spear/spear6xx_clock.c
> > index 4f649c9..3e43244 100644
> > --- a/drivers/clk/spear/spear6xx_clock.c
> > +++ b/drivers/clk/spear/spear6xx_clock.c
> > @@ -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.
> 
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

Sending to Mike's updated email id.
diff mbox

Patch

diff --git a/drivers/clk/spear/spear6xx_clock.c b/drivers/clk/spear/spear6xx_clock.c
index 4f649c9..3e43244 100644
--- a/drivers/clk/spear/spear6xx_clock.c
+++ b/drivers/clk/spear/spear6xx_clock.c
@@ -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");