From: Shawn Guo Date: Wed, 6 Jul 2011 16:37:42 +0000 (+0800) Subject: ARM: mxc: use ARCH_NR_GPIOS to define gpio number X-Git-Tag: v3.1-rc1~313^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14305e685dff531583e95c5076f633f2fe2b141c;p=pandora-kernel.git ARM: mxc: use ARCH_NR_GPIOS to define gpio number The patch removes MXC_GPIO_IRQS and instead uses ARCH_NR_GPIOS to define gpio number. This change is need when we change mxc gpio driver to be device tree aware. When migrating the driver to device tree, pdev->id becomes unusable. It requires driver get gpio range from gpio core, which will dynamically allocates number from ARCH_NR_GPIOS to 0. As a bonus point, it removes lines of '#if' and make the code a little bit cleaner. The side effect is the waste of number. But this is not a point when we go single image. Signed-off-by: Shawn Guo Signed-off-by: Grant Likely --- Reading git-diff-tree failed