diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-05-02 10:46:34 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-05-16 18:42:31 -0400 |
commit | 33a0d1907fb442cd59b8e2eb83be79c4ab1cb791 (patch) | |
tree | 7d6602b68624a85a4580500d48ce1aa3c10cdfe6 /drivers/mfd/ab8500-gpadc.c | |
parent | 9f7af61a93fc96ae7e55d6a292f5cc7decba5ad2 (diff) |
mfd: ab8500-gpadc: Suppress 'ignoring regulator_enable() return value' warning
drivers/mfd/ab8500-gpadc.c: In function ‘ab8500_gpadc_resume’:
drivers/mfd/ab8500-gpadc.c:911:18: warning: ignoring return value of
‘regulator_enable’, declared with attribute warn_unused_result
[-Wunused-result]
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/ab8500-gpadc.c')
-rw-r--r-- | drivers/mfd/ab8500-gpadc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c index 5e65b28a5d09..13f7866de46e 100644 --- a/drivers/mfd/ab8500-gpadc.c +++ b/drivers/mfd/ab8500-gpadc.c | |||
@@ -907,14 +907,17 @@ static int ab8500_gpadc_suspend(struct device *dev) | |||
907 | static int ab8500_gpadc_resume(struct device *dev) | 907 | static int ab8500_gpadc_resume(struct device *dev) |
908 | { | 908 | { |
909 | struct ab8500_gpadc *gpadc = dev_get_drvdata(dev); | 909 | struct ab8500_gpadc *gpadc = dev_get_drvdata(dev); |
910 | int ret; | ||
910 | 911 | ||
911 | regulator_enable(gpadc->regu); | 912 | ret = regulator_enable(gpadc->regu); |
913 | if (ret) | ||
914 | dev_err(dev, "Failed to enable vtvout LDO: %d\n", ret); | ||
912 | 915 | ||
913 | pm_runtime_mark_last_busy(gpadc->dev); | 916 | pm_runtime_mark_last_busy(gpadc->dev); |
914 | pm_runtime_put_autosuspend(gpadc->dev); | 917 | pm_runtime_put_autosuspend(gpadc->dev); |
915 | 918 | ||
916 | mutex_unlock(&gpadc->ab8500_gpadc_lock); | 919 | mutex_unlock(&gpadc->ab8500_gpadc_lock); |
917 | return 0; | 920 | return ret; |
918 | } | 921 | } |
919 | 922 | ||
920 | static int ab8500_gpadc_probe(struct platform_device *pdev) | 923 | static int ab8500_gpadc_probe(struct platform_device *pdev) |