Skip to content

Commit

Permalink
iio: adc: cf_axi_adc_core: unregister the IIO device
Browse files Browse the repository at this point in the history
There's no .remove hook on the driver and the IIO device was never being
unregistered. Use devm_iio_device_register() so the device can be
unregistered.

Signed-off-by: Nuno Sa <[email protected]>
  • Loading branch information
nunojsa committed May 3, 2023
1 parent 19ff231 commit 136349d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/cf_axi_adc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ static int axiadc_probe(struct platform_device *pdev)
return ret;
}

ret = iio_device_register(indio_dev);
ret = devm_iio_device_register(&pdev->dev, indio_dev);
if (ret)
return ret;

Expand Down

0 comments on commit 136349d

Please sign in to comment.