summaryrefslogtreecommitdiffstats
path: root/Documentation/input
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-04 05:21:30 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-03-11 02:34:07 +0100
commit4b7d293c64fde133cc2b669d0d7637b8a4c6d62f (patch)
tree68ed54427b3ee2db2b95a3d1a7ff25d55e0fdc61 /Documentation/input
parentInput: ads7864 - check return value of regulator enable (diff)
downloadlinux-4b7d293c64fde133cc2b669d0d7637b8a4c6d62f.tar.xz
linux-4b7d293c64fde133cc2b669d0d7637b8a4c6d62f.zip
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 <broonie@opensource.wolfsonmicro.com> Acked-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/input')
0 files changed, 0 insertions, 0 deletions