File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ static int qcom_rpm_probe(struct platform_device *pdev)
547
547
init_completion (& rpm -> ack );
548
548
549
549
/* Enable message RAM clock */
550
- rpm -> ramclk = devm_clk_get (& pdev -> dev , "ram" );
550
+ rpm -> ramclk = devm_clk_get_enabled (& pdev -> dev , "ram" );
551
551
if (IS_ERR (rpm -> ramclk )) {
552
552
ret = PTR_ERR (rpm -> ramclk );
553
553
if (ret == - EPROBE_DEFER )
@@ -558,7 +558,6 @@ static int qcom_rpm_probe(struct platform_device *pdev)
558
558
*/
559
559
rpm -> ramclk = NULL ;
560
560
}
561
- clk_prepare_enable (rpm -> ramclk ); /* Accepts NULL */
562
561
563
562
irq_ack = platform_get_irq_byname (pdev , "ack" );
564
563
if (irq_ack < 0 )
@@ -681,7 +680,6 @@ static int qcom_rpm_remove(struct platform_device *pdev)
681
680
struct qcom_rpm * rpm = dev_get_drvdata (& pdev -> dev );
682
681
683
682
of_platform_depopulate (& pdev -> dev );
684
- clk_disable_unprepare (rpm -> ramclk );
685
683
686
684
return 0 ;
687
685
}
You can’t perform that action at this time.
0 commit comments