|
|
@@ -112,7 +112,7 @@ static int __init txx9wdt_probe(struct platform_device *dev)
|
|
|
txx9_imclk = NULL;
|
|
|
goto exit;
|
|
|
}
|
|
|
- ret = clk_enable(txx9_imclk);
|
|
|
+ ret = clk_prepare_enable(txx9_imclk);
|
|
|
if (ret) {
|
|
|
clk_put(txx9_imclk);
|
|
|
txx9_imclk = NULL;
|
|
|
@@ -144,7 +144,7 @@ static int __init txx9wdt_probe(struct platform_device *dev)
|
|
|
return 0;
|
|
|
exit:
|
|
|
if (txx9_imclk) {
|
|
|
- clk_disable(txx9_imclk);
|
|
|
+ clk_disable_unprepare(txx9_imclk);
|
|
|
clk_put(txx9_imclk);
|
|
|
}
|
|
|
return ret;
|
|
|
@@ -153,7 +153,7 @@ exit:
|
|
|
static int __exit txx9wdt_remove(struct platform_device *dev)
|
|
|
{
|
|
|
watchdog_unregister_device(&txx9wdt);
|
|
|
- clk_disable(txx9_imclk);
|
|
|
+ clk_disable_unprepare(txx9_imclk);
|
|
|
clk_put(txx9_imclk);
|
|
|
return 0;
|
|
|
}
|