Message ID | 1362139636-23579-1-git-send-email-linus.walleij@stericsson.com |
---|---|
State | Accepted |
Commit | a200e320f7ba7daa42e5fae3a1c67ed2f704b05c |
Headers | show |
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c index 4b11202..e550dcb 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) return -ENOMEM; stmpe_of_probe(pdata, np); + + if (of_find_property(np, "interrupts", NULL) == NULL) + ci->irq = -1; } stmpe = devm_kzalloc(ci->dev, sizeof(struct stmpe), GFP_KERNEL);