Replace clk_disable and clk_unprepare with clk_disable_unprepare.

The Coccinelle semantic patch used to make this change is as follows:
@@
expression e;
@@

- clk_disable(e);
- clk_unprepare(e);
+ clk_disable_unprepare(e);

Signed-off-by: Amitoj Kaur Chawla <amitoj1...@gmail.com>
---
 drivers/clocksource/timer-sp804.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/clocksource/timer-sp804.c 
b/drivers/clocksource/timer-sp804.c
index 5f45b9a..8d2d9a6 100644
--- a/drivers/clocksource/timer-sp804.c
+++ b/drivers/clocksource/timer-sp804.c
@@ -57,8 +57,7 @@ static long __init sp804_get_clock_rate(struct clk *clk)
        rate = clk_get_rate(clk);
        if (rate < 0) {
                pr_err("sp804: clock failed to get rate: %ld\n", rate);
-               clk_disable(clk);
-               clk_unprepare(clk);
+               clk_disable_unprepare(clk);
                clk_put(clk);
        }
 
-- 
1.9.1

Reply via email to