ARM: 7611/1: VIC: fix bug in VIC irqdomain code
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 26 Dec 2012 00:39:16 +0000 (01:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Jan 2013 10:35:07 +0000 (10:35 +0000)
commit5ced33bc06e7e76cb8a236f15bff49eb6155b618
treea82224b7e5350ceb6c6c184ec2aa1af690d1d6e5
parentf5565295892eb93c3191aa241405fe8b685542d6
ARM: 7611/1: VIC: fix bug in VIC irqdomain code

The VIC irqdomain code added in commit
07c9249f1fa90cc8189bed44c0bcece664596a72
"ARM: 7554/1: VIC: use irq_domain_add_simple()"

Had two bugs:

1) It didn't call irq_create_mapping() once on each
   valid irq source in the slowpath when registering
   the controller.

2) It passed a -1 as IRQ offset for the DT case, whereas
   0 should be passed as invalid IRQ instead.

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/vic.c