gpio-langwell: fix irq conflicts when DT is not used
authorDavid Cohen <david.a.cohen@intel.com>
Mon, 6 May 2013 23:11:03 +0000 (16:11 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 20 May 2013 18:10:22 +0000 (20:10 +0200)
commit2519f9abced15b4327f03d7b8666827517582c29
treee960822ef78c74d1e6e4c55451f45e1c427e59a6
parent0f119a840b128f18b20608f0d33895e85f381105
gpio-langwell: fix irq conflicts when DT is not used

When DT is not used IOAPIC does not register irq domain. As result
IOAPIC won't care about gpio-langwell's virq and may cause conflict if
an irq number is equal to gpio-langwell's virq mapped beforehand.

This patch tells gpio_langwell to not ignore irq_base if != 0 and
preferably use it to avoid the conflict.

If DT is used, irq_base can safely be 0.

Signed-off-by: David Cohen <david.a.cohen@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-langwell.c