diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-07-06 18:37:42 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-07-08 20:38:18 +0200 |
commit | 14305e685dff531583e95c5076f633f2fe2b141c (patch) | |
tree | cfa91e6e55d17ec77a933241190a0c6def2e1b95 /kernel/trace/trace_branch.c | |
parent | gpio/mxc: get rid of the uses of cpu_is_mx() (diff) | |
download | linux-14305e685dff531583e95c5076f633f2fe2b141c.tar.xz linux-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 'kernel/trace/trace_branch.c')
0 files changed, 0 insertions, 0 deletions