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

iio: adc: max1118: Use devm_ managed functions for all of probe



This simplifies error handling and allows us to drop the remove
function entirely.

Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: default avatarAlexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210516172520.1398835-4-jic23@kernel.org
parent 7169a78e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment