aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2021-05-13 15:07:41 +0300
committerJonathan Cameron <[email protected]>2021-05-13 16:32:39 +0100
commit4573472315f0fa461330545ff2aa2f6da0b1ae76 (patch)
tree4bc81d2c30a1869ba3c1c6202c78089df4be3dff /drivers/usb/cdns3/cdns3-debug.h
parentba9c25d94dea1a57492a606a1f5dde70d2432583 (diff)
iio: adc: ad7124: Fix missbalanced regulator enable / disable on error.
If the devm_regulator_get() call succeeded but not the regulator_enable() then regulator_disable() would be called on a regulator that was not enabled. Fix this by moving regulator enabling / disabling over to devm_ management via devm_add_action_or_reset. Alexandru's sign-off here because he pulled Jonathan's patch into a larger set which Jonathan then applied. Fixes: b3af341bbd96 ("iio: adc: Add ad7124 support") Reviewed-by: Alexandru Ardelean <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Alexandru Ardelean <[email protected]> Cc: <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions