diff options
| author | 2021-05-16 18:25:14 +0100 | |
|---|---|---|
| committer | 2021-06-03 18:24:14 +0100 | |
| commit | 7169a78e398463df9201939b51935dc17b53f422 (patch) | |
| tree | 97205220d98075faf19263a990ca5f64140b2050 /scripts/checkstack.pl | |
| parent | iio: adc: max11100: Use get_unaligned_be16() rather than opencoding. (diff) | |
iio: adc: max11100: Use devm_ functions for rest of probe()
By using devm_add_action_or_reset() to manage the regulator disable,
it becomes simple to use managed functions for all of remove.
This simplifies error handling and allows us to drop the remove()
function entirely.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210516172520.1398835-3-jic23@kernel.org
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
