We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acd2913 commit 0cf2661Copy full SHA for 0cf2661
drivers/mfd/omap-usb-tll.c
@@ -269,6 +269,8 @@ static int usbtll_omap_probe(struct platform_device *pdev)
269
270
if (IS_ERR(tll->ch_clk[i]))
271
dev_dbg(dev, "can't get clock : %s\n", clkname);
272
+ else
273
+ clk_prepare(tll->ch_clk[i]);
274
}
275
276
pm_runtime_put_sync(dev);
@@ -301,9 +303,12 @@ static int usbtll_omap_remove(struct platform_device *pdev)
301
303
tll_dev = NULL;
302
304
spin_unlock(&tll_lock);
305
- for (i = 0; i < tll->nch; i++)
- if (!IS_ERR(tll->ch_clk[i]))
306
+ for (i = 0; i < tll->nch; i++) {
307
+ if (!IS_ERR(tll->ch_clk[i])) {
308
+ clk_unprepare(tll->ch_clk[i]);
309
clk_put(tll->ch_clk[i]);
310
+ }
311
312
313
pm_runtime_disable(&pdev->dev);
314
return 0;
0 commit comments