diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-05-03 15:21:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-16 15:37:49 -0700 |
commit | a5017b962059f7cec8f6d2dfb286ef3fbfbaab82 (patch) | |
tree | 62c562b433d3b52d68d0af7f3143c954f1fbe17e /drivers/staging | |
parent | ab2273c62dbec17432d40d2a78ce380f3d34a216 (diff) | |
download | linux-a5017b962059f7cec8f6d2dfb286ef3fbfbaab82.tar.gz linux-a5017b962059f7cec8f6d2dfb286ef3fbfbaab82.tar.bz2 linux-a5017b962059f7cec8f6d2dfb286ef3fbfbaab82.zip |
staging: ste_rmi4: Suppress 'ignoring return value of ‘regulator_enable()' warning
drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c:
In function ‘synaptics_rmi4_resume’:
drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c:1090:18:
warning: ignoring return value of ‘regulator_enable’, declared
with attribute warn_unused_result [-Wunused-result
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: devel@driverdev.osuosl.org
Acked-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c b/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c index fe667dde43ce..386362c9964f 100644 --- a/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c +++ b/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c @@ -1087,7 +1087,11 @@ static int synaptics_rmi4_resume(struct device *dev) unsigned char intr_status; struct synaptics_rmi4_data *rmi4_data = dev_get_drvdata(dev); - regulator_enable(rmi4_data->regulator); + retval = regulator_enable(rmi4_data->regulator); + if (retval) { + dev_err(dev, "Regulator enable failed (%d)\n", retval); + return retval; + } enable_irq(rmi4_data->i2c_client->irq); rmi4_data->touch_stopped = false; |