summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2015-02-13 15:01:14 +0200
committerLee Jones <lee.jones@linaro.org>2015-03-03 16:41:12 +0000
commitad7b5a175cda5425c97612c8b607a4c1992ad273 (patch)
treefc1ce09e33ffecb528807c65995b0072f65746ed /drivers/mfd
parent9c98dcb08c85e67ce83f3a7f8785da20349533fe (diff)
downloadtalos-obmc-linux-ad7b5a175cda5425c97612c8b607a4c1992ad273.tar.gz
talos-obmc-linux-ad7b5a175cda5425c97612c8b607a4c1992ad273.zip
mfd: intel_soc_pmic: Do not mangle error code from devm_gpiod_get_index()
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/intel_soc_pmic_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c
index 3b41d3d645c6..3991ddbe9f0e 100644
--- 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)
OpenPOWER on IntegriCloud