summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-meson.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2021-05-16 18:25:14 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-06-03 18:24:14 +0100
commit7169a78e398463df9201939b51935dc17b53f422 (patch)
tree97205220d98075faf19263a990ca5f64140b2050 /drivers/pwm/pwm-meson.c
parentff9111ab3e1f01cad2318c6bc989c8bf51a570ac (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 'drivers/pwm/pwm-meson.c')
0 files changed, 0 insertions, 0 deletions