aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorGabriel Fernandez <gabriel.fernandez@stericsson.com>2013-03-01 07:07:16 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-05 12:05:54 -0400
commita200e320f7ba7daa42e5fae3a1c67ed2f704b05c (patch)
treed7ae15dd07f70e8d4009338a62738c9cb15430a0 /drivers/mfd
parent5ab3a89a741fa4c331f42dec17fde59586dc59e6 (diff)
mfd: stmpe: DT: Enable no-irq mode configuration
If there is no interrupt property into stmpe node then activate the no-irq mode by setting the irq value to -1. Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: Gabriel Fernandez <gabriel.fernandez@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/stmpe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index 4b11202061be..e550dcb1d394 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -1057,6 +1057,9 @@ int stmpe_probe(struct stmpe_client_info *ci, int partnum)
1057 return -ENOMEM; 1057 return -ENOMEM;
1058 1058
1059 stmpe_of_probe(pdata, np); 1059 stmpe_of_probe(pdata, np);
1060
1061 if (of_find_property(np, "interrupts", NULL) == NULL)
1062 ci->irq = -1;
1060 } 1063 }
1061 1064
1062 stmpe = devm_kzalloc(ci->dev, sizeof(struct stmpe), GFP_KERNEL); 1065 stmpe = devm_kzalloc(ci->dev, sizeof(struct stmpe), GFP_KERNEL);