diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-11-05 10:21:18 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-11-07 11:37:59 -0500 |
commit | 74dac2ed699cbe1dee0e4e7891619d53a5f2632f (patch) | |
tree | 932671a0a2f073abe85230cd0226be7be062acd7 /drivers/of | |
parent | b5480950c6cbb7b07ab1c1a5af0dc661a1cb6f24 (diff) |
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.c | 2 |
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) | |||
199 | /* Compare specifiers */ | 199 | /* Compare specifiers */ |
200 | match = 1; | 200 | match = 1; |
201 | for (i = 0; i < (addrsize + intsize); i++, imaplen--) | 201 | for (i = 0; i < (addrsize + intsize); i++, imaplen--) |
202 | match = !((match_array[i] ^ *imap++) & imask[i]); | 202 | match &= !((match_array[i] ^ *imap++) & imask[i]); |
203 | 203 | ||
204 | pr_debug(" -> match=%d (imaplen=%d)\n", match, imaplen); | 204 | pr_debug(" -> match=%d (imaplen=%d)\n", match, imaplen); |
205 | 205 | ||