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 b28c14a commit 7beff54Copy full SHA for 7beff54
drivers/mfd/ti_am335x_tscadc.c
@@ -210,14 +210,13 @@ static int ti_tscadc_probe(struct platform_device *pdev)
210
* The TSC_ADC_SS controller design assumes the OCP clock is
211
* at least 6x faster than the ADC clock.
212
*/
213
- clk = clk_get(&pdev->dev, "adc_tsc_fck");
+ clk = devm_clk_get(&pdev->dev, "adc_tsc_fck");
214
if (IS_ERR(clk)) {
215
dev_err(&pdev->dev, "failed to get TSC fck\n");
216
err = PTR_ERR(clk);
217
goto err_disable_clk;
218
}
219
clock_rate = clk_get_rate(clk);
220
- clk_put(clk);
221
tscadc->clk_div = clock_rate / ADC_CLK;
222
223
/* TSCADC_CLKDIV needs to be configured to the value minus 1 */
0 commit comments