Skip to content
Commit c247e0d8 authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

iio: adc: cc10001: Use devm_clk_get_enabled() to avoid boilerplate.



As this driver just enables clock in probe() and disables in remove()
we can use this new function to replace boilerplate and simplify
error paths.

Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarNuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20221016170950.387751-4-jic23@kernel.org
parent dc0ba516
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment