aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-07-07 00:37:42 +0800
committerGrant Likely <grant.likely@secretlab.ca>2011-07-08 12:38:18 -0600
commit14305e685dff531583e95c5076f633f2fe2b141c (patch)
treecfa91e6e55d17ec77a933241190a0c6def2e1b95 /drivers/gpio
parentgpio/mxc: get rid of the uses of cpu_is_mx() (diff)
downloadlinux-dev-14305e685dff531583e95c5076f633f2fe2b141c.tar.xz
linux-dev-14305e685dff531583e95c5076f633f2fe2b141c.zip
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 <shawn.guo@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions