From: eric miao Date: Wed, 29 Aug 2007 09:18:47 +0000 (+0100) Subject: [ARM] 4559/1: pxa: make PXA_LAST_GPIO a run-time variable X-Git-Tag: v2.6.24-rc1~1273^2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f0b40844e5add7ad879e2f5939ff498f72f3e6;p=pandora-kernel.git [ARM] 4559/1: pxa: make PXA_LAST_GPIO a run-time variable This definition produces processor specific code in generic function pxa_gpio_mode(), thus creating inconsistencies for support of pxa25x and pxa27x in a single zImage. As David Brownell suggests, make it a run-time variable and initialize at run-time according to the number of GPIOs on the processor. For now the initialization happens in pxa_init_irq_gpio(), since there is already a parameter for that, besides, this is and MUST be earlier than any subsequent calls to pxa_gpio_mode(). Signed-off-by: eric miao Signed-off-by: Russell King --- Reading git-diff-tree failed