gpio: pca953x: use simple irqdomain
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 25 Jan 2013 16:59:27 +0000 (17:59 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Jan 2013 10:15:31 +0000 (11:15 +0100)
commit0e8f2fdacf1d44651aa7e57063c76142d1f4988b
treef42a0e786de645bef0442959e633c89b966b1cff
parent6c7e660a27da7494c670bfba21cfeba30457656c
gpio: pca953x: use simple irqdomain

This switches the legacy irqdomain to the simple one, which will
auto-allocate descriptors, and also make sure that we use
irq_create_mapping() in the to_irq function. Also use the map function
of irq_domain_ops to setup the irq configuration on demand and no more
statically during the initialization of the driver.

Based on a initial patch from Linus Walleij <linus.walleij@linaro.org>

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c