Skip to content

Commit

Permalink
mfd: stmpe: DT: Enable no-irq mode configuration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gabriel Fernandez authored and Samuel Ortiz committed Apr 5, 2013
1 parent 5ab3a89 commit a200e32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mfd/stmpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a200e32

Please sign in to comment.