This series converts twl6030-gpadc's probe error
handling and remove path to devm cleanup, and
deletes redundant dev_err() messages in probe.
- Patch 1 registers twl6030_gpadc_disable_irq()
with devm_add_action_or_reset().
- Patch 2 converts iio_device_register() to
devm_iio_device_register().
- Patch 3 deletes redundant dev_err() messages in probe.
Compile-tested only.
Changes in v2:
- Use devm_add_action_or_reset() instead of a
goto error path. Thanks, Jonathan!
- Convert to devm_iio_device_register() and drop
remove(). Thanks, Jonathan!
- Drop redundant dev_err() messages after twl_i2c_write_u8().
Thanks, Andreas!
Wanhui Fu (3):
iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ
iio: adc: twl6030-gpadc: switch to devm_iio_device_register()
iio: adc: twl6030-gpadc: delete redundant dev_err() messages in probe
drivers/iio/adc/twl6030-gpadc.c | 41 ++++++++++++---------------------
1 file changed, 15 insertions(+), 26 deletions(-)
--
2.25.1