3 Nov
2015
3 Nov
'15
12:20 p.m.
Signed-off-by: Sebastien Jan sjan@baylibre.com --- drivers/mfd/arizona-core.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index 44cfdbb..23a0f93 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -814,6 +814,11 @@ static int arizona_of_get_core_pdata(struct arizona *arizona) count++; }
+ arizona->pdata.irq_gpio = of_get_named_gpio(arizona->dev->of_node, + "wlf,irq_gpio", 0); + if (arizona->pdata.irq_gpio < 0) + arizona->pdata.irq_gpio = 0; + return 0; }
--
1.9.1