Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad7b5a17 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Lee Jones
Browse files

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: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 9c98dcb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)