projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ab3a89
)
mfd: stmpe: DT: Enable no-irq mode configuration
author
Gabriel Fernandez
<
[email protected]
>
Fri, 1 Mar 2013 12:07:16 +0000
(13:07 +0100)
committer
Samuel Ortiz
<
[email protected]
>
Fri, 5 Apr 2013 16:05:54 +0000
(18:05 +0200)
If there is no interrupt property into stmpe node
then activate the no-irq mode by setting the irq
value to -1.
Cc:
[email protected]
Signed-off-by: Gabriel Fernandez <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/mfd/stmpe.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/stmpe.c
b/drivers/mfd/stmpe.c
index 4b11202061bef686b62275f59690e2d4fa29778f..e550dcb1d394b180f5b740a730ce1b0bcd8c30c5 100644
(file)
--- 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);