From: Daniel Mack Date: Sun, 22 Jul 2012 14:55:44 +0000 (+0200) Subject: GPIO: gpio-pxa: simplify pxa_gpio_to_irq() and pxa_irq_to_chip() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~61^2~23^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9450be76d0e3ebedf301aa09e4f98b4d3a175229;p=pandora-kernel.git GPIO: gpio-pxa: simplify pxa_gpio_to_irq() and pxa_irq_to_chip() Simplify the code in gpio-pxa.c and make them based on irq_base. When not probed from devicetree, initialize irq_base from PXA_GPIO_TO_IRQ() or MMP_GPIO_TO_IRQ(), respectively, so the non-DT case still works. Only tested on PXA3xx. Signed-off-by: Daniel Mack Acked-by: Arnd Bergmann Acked-by: Linus Walleij Signed-off-by: Haojian Zhuang --- Reading git-diff-tree failed