projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c98dcb
)
mfd: intel_soc_pmic: Do not mangle error code from devm_gpiod_get_index()
author
Jarkko Nikula
<jarkko.nikula@linux.intel.com>
Fri, 13 Feb 2015 13:01:14 +0000
(15:01 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Tue, 3 Mar 2015 16:41:12 +0000
(16:41 +0000)
It is usually better to pass actual error code from a function call than
mangling it to another.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_soc_pmic_core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/intel_soc_pmic_core.c
b/drivers/mfd/intel_soc_pmic_core.c
index
3b41d3d
..
3991ddb
100644
(file)
--- a/
drivers/mfd/intel_soc_pmic_core.c
+++ b/
drivers/mfd/intel_soc_pmic_core.c
@@
-33,7
+33,7
@@
static int intel_soc_pmic_find_gpio_irq(struct device *dev)
desc = devm_gpiod_get_index(dev, "intel_soc_pmic", 0);
if (IS_ERR(desc))
- return
-ENOENT
;
+ return
PTR_ERR(desc)
;
irq = gpiod_to_irq(desc);
if (irq < 0)