aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2013-03-03 20:21:30 -0800
committerDmitry Torokhov <[email protected]>2013-03-10 18:34:07 -0700
commit4b7d293c64fde133cc2b669d0d7637b8a4c6d62f (patch)
tree68ed54427b3ee2db2b95a3d1a7ff25d55e0fdc61 /lib/memory-notifier-error-inject.c
parentf94352f8db97b9a3b3c1ec45f6fef1400880168a (diff)
Input: mms114 - Fix regulator enable and disable paths
When it uses regulators the mms114 driver checks to see if it managed to acquire regulators and ignores errors. This is not the intended usage and not great style in general. Since the driver already refuses to probe if it fails to allocate the regulators simply make the enable and disable calls unconditional and add appropriate error handling, including adding cleanup of the regulators if setup_reg() fails. Signed-off-by: Mark Brown <[email protected]> Acked-by: Joonyoung Shim <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions