From: Jarkko Nikula Date: Fri, 13 Feb 2015 13:01:15 +0000 (+0200) Subject: mfd: intel_soc_pmic: Ensure GPIO irq is set to input pin X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9dc502195a2d5ee810628b5697ddd854e38fa143;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mfd: intel_soc_pmic: Ensure GPIO irq is set to input pin Surely GPIO irq will be used as an input pin so make sure its direction is set after requesting. Signed-off-by: Jarkko Nikula Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c index 3991ddbe9f0e..7b50b6b208a5 100644 --- a/drivers/mfd/intel_soc_pmic_core.c +++ b/drivers/mfd/intel_soc_pmic_core.c @@ -31,7 +31,7 @@ static int intel_soc_pmic_find_gpio_irq(struct device *dev) struct gpio_desc *desc; int irq; - desc = devm_gpiod_get_index(dev, "intel_soc_pmic", 0); + desc = devm_gpiod_get_index(dev, "intel_soc_pmic", 0, GPIOD_IN); if (IS_ERR(desc)) return PTR_ERR(desc);