diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2015-02-13 15:01:15 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-03-03 16:41:12 +0000 |
commit | 9dc502195a2d5ee810628b5697ddd854e38fa143 (patch) | |
tree | ec920e081bd78f6ca5a353730a47fa9ef6910383 /drivers/mfd/intel_soc_pmic_core.c | |
parent | ad7b5a175cda5425c97612c8b607a4c1992ad273 (diff) | |
download | blackbird-op-linux-9dc502195a2d5ee810628b5697ddd854e38fa143.tar.gz blackbird-op-linux-9dc502195a2d5ee810628b5697ddd854e38fa143.zip |
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 <jarkko.nikula@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/intel_soc_pmic_core.c')
-rw-r--r-- | drivers/mfd/intel_soc_pmic_core.c | 2 |
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 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); |