summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-11-05 16:21:18 +0100
committerRob Herring <rob.herring@calxeda.com>2013-11-07 10:37:59 -0600
commit74dac2ed699cbe1dee0e4e7891619d53a5f2632f (patch)
tree932671a0a2f073abe85230cd0226be7be062acd7 /drivers/of
parentb5480950c6cbb7b07ab1c1a5af0dc661a1cb6f24 (diff)
downloadlinux-74dac2ed699cbe1dee0e4e7891619d53a5f2632f.tar.bz2
of: irq: Fix interrupt-map entry matching
This patch fixes interrupt-map entry matching code to properly match all specifier cells with interrupt map entries. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Tested-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index d385bb824772..786b0b47fae4 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -199,7 +199,7 @@ int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq)
/* Compare specifiers */
match = 1;
for (i = 0; i < (addrsize + intsize); i++, imaplen--)
- match = !((match_array[i] ^ *imap++) & imask[i]);
+ match &= !((match_array[i] ^ *imap++) & imask[i]);
pr_debug(" -> match=%d (imaplen=%d)\n", match, imaplen);