projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbc102f
)
regulator: pca9450: Fix return value when failing to get sd-vsel GPIO
author
Frieder Schrempf
<frieder.schrempf@kontron.de>
Mon, 22 Feb 2021 15:08:04 +0000
(16:08 +0100)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Mar 2021 12:22:23 +0000
(12:22 +0000)
This fixes the return value of pca9450_i2c_probe() to use the correct
error code when getting the sd-vsel GPIO fails.
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link:
https://lore.kernel.org/r/20210222150809.208942-1-frieder.schrempf@kontron.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pca9450-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/pca9450-regulator.c
b/drivers/regulator/pca9450-regulator.c
index 833d398c6aa21f3f5cdd777ca0c3ec6120d1045b..89b806be399f1f0d8a52aa67940a05a1821cd98d 100644
(file)
--- a/
drivers/regulator/pca9450-regulator.c
+++ b/
drivers/regulator/pca9450-regulator.c
@@
-814,7
+814,7
@@
static int pca9450_i2c_probe(struct i2c_client *i2c,
if (IS_ERR(pca9450->sd_vsel_gpio)) {
dev_err(&i2c->dev, "Failed to get SD_VSEL GPIO\n");
- return
ret
;
+ return
PTR_ERR(pca9450->sd_vsel_gpio)
;
}
dev_info(&i2c->dev, "%s probed.\n",