diff options
| author | Axel Lin <[email protected]> | 2013-03-09 09:46:45 +0000 |
|---|---|---|
| committer | Samuel Ortiz <[email protected]> | 2013-03-12 08:34:39 +0000 |
| commit | 54fc4037ac449acf96ab88c3e65633c997df8a84 (patch) | |
| tree | ff0b6d1bbc7d1f88a2f33cf9909f392ba32b0a93 /net/unix/af_unix.c | |
| parent | mfd: wm831x: Don't forward declare enum wm831x_auxadc (diff) | |
| download | kernel-54fc4037ac449acf96ab88c3e65633c997df8a84.tar.gz kernel-54fc4037ac449acf96ab88c3e65633c997df8a84.zip | |
mfd: ab8500-gpadc: Complain if we fail to enable vtvout LDO
Since commit c8801a8e
"regulator: core: Mark all get and enable calls as __must_check",
we must check return value of regulator_enable() to silence below build warning.
CC drivers/mfd/ab8500-gpadc.o
drivers/mfd/ab8500-gpadc.c: In function 'ab8500_gpadc_runtime_resume':
drivers/mfd/ab8500-gpadc.c:598:18: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
drivers/mfd/ab8500-gpadc.c: In function 'ab8500_gpadc_probe':
drivers/mfd/ab8500-gpadc.c:655:18: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
Also convert to devm_regulator_get(), this fixes a missing regulator_put() call
in ab8500_gpadc_remove().
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
