clk: pxa: unbreak lookup of CLK_POUT
PATCH 1/1 clk: pxa: unbreak lookup of CLK_POUT
Since switching to clk drivers, the CLK_POUT cannot be searched for by clk_get() API and thus it returns with ENOENT.
Register it with the clk_lookup and thus unbreak the users of it.
Signed-off-by Igor Grinberg <[email protected]>
--- drivers/clk/pxa/clk-pxa3xx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/clk/pxa/clk-pxa3xx.c +5 -1
@@ -329,12 +329,16 @@ static void __init pxa3xx_dummy_clocks_init(void)static void __init pxa3xx_base_clocks_init (void ) { +struct clk *clk; +pxa3xx_register_plls ();pxa3xx_register_core ();clk_register_clk_pxa3xx_system_bus ();clk_register_clk_pxa3xx_ac97 ();clk_register_clk_pxa3xx_smemc (); -clk_register_gate (NULL ,"CLK_POUT" ,"osc_13mhz" ,0 ,OSCC ,11 ,0 ,NULL ); + clk =clk_register_gate (NULL ,"CLK_POUT" , +"osc_13mhz" ,0 ,OSCC ,11 ,0 ,NULL ); +clk_register_clkdev (clk,"CLK_POUT" ,NULL );clkdev_pxa_register (CLK_OSTIMER ,"OSTIMER0" ,NULL ,clk_register_fixed_factor (NULL ,"os-timer0" ,"osc_13mhz" ,0 ,1 ,4 ));
Signature · 1 line
2.13.6
PATCH 1/1 clk: pxa: unbreak lookup of CLK_POUT
Quoted 5 lines · Igor Grinberg
Since switching to clk drivers, the
CLK_POUTcannot be searched for byclk_get()API and thus it returns with ENOENT.
Register it with theclk_lookupand thus unbreak the users of it.Signed-off-by Igor Grinberg <[email protected]>
Acked-by Robert Jarzmik <[email protected]>
Cheers.
--
Robert
Stephen Boyd
AppliedPATCH 1/1 clk: pxa: unbreak lookup of CLK_POUT
In reply to Igor GrinbergQuoted 6 lines · Igor Grinberg
Since switching to clk drivers, the
CLK_POUTcannot be searched for byclk_get()API and thus it returns with ENOENT.
Register it with theclk_lookupand thus unbreak the users of it.Signed-off-by Igor Grinberg <[email protected]>---
Applied to clk-next
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project