summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/us5182d.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2016-08-10 07:18:16 +0200
committerJonathan Cameron <jic23@kernel.org>2016-08-15 16:49:43 +0100
commit281269f8a0b00f5c95de5158e8595ed51bdb4b0a (patch)
tree12a169bd9cfabf7c167f387f1f334a58120edaf2 /drivers/iio/light/us5182d.c
parent7c94a8b2ee8cfe915f332575566b4870976ab8f4 (diff)
downloadop-kernel-dev-281269f8a0b00f5c95de5158e8595ed51bdb4b0a.zip
op-kernel-dev-281269f8a0b00f5c95de5158e8595ed51bdb4b0a.tar.gz
iio: light: us5182d: Add missing error code assignment before test
It is likely that checking the result of 'pm_runtime_set_active' is expected here. Fixes: f0e5f57d3ac2 ("iio: light: us8152d: Add power management support") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/us5182d.c')
-rw-r--r--drivers/iio/light/us5182d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/us5182d.c b/drivers/iio/light/us5182d.c
index 20c40f7..18cf2e2 100644
--- a/drivers/iio/light/us5182d.c
+++ b/drivers/iio/light/us5182d.c
@@ -894,7 +894,7 @@ static int us5182d_probe(struct i2c_client *client,
goto out_err;
if (data->default_continuous) {
- pm_runtime_set_active(&client->dev);
+ ret = pm_runtime_set_active(&client->dev);
if (ret < 0)
goto out_err;
}
OpenPOWER on IntegriCloud