projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c94a8b
)
iio: light: us5182d: Add missing error code assignment before test
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Wed, 10 Aug 2016 05:18:16 +0000
(07:18 +0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 15 Aug 2016 15:49:43 +0000
(16:49 +0100)
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>
drivers/iio/light/us5182d.c
patch
|
blob
|
history
diff --git
a/drivers/iio/light/us5182d.c
b/drivers/iio/light/us5182d.c
index 20c40f7809643342756db86060b98ea6536053e9..18cf2e29e4d5561c94d347ed535ebb9fdcf48788 100644
(file)
--- 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;
}