diff options
author | Joachim Eastwood <joachim.eastwood@jotron.com> | 2012-01-10 02:37:25 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2012-03-03 14:43:37 +0100 |
commit | 80af9e6d7ae633309cc5bca96aee6a45117e7c98 (patch) | |
tree | e46b41733e940d76ecea89384beff60988b95ac9 /drivers/pcmcia/pxa2xx_cm_x270.c | |
parent | ARM: pxa: fix error handling in pxa2xx_drv_pcmcia_probe (diff) | |
download | linux-80af9e6d7ae633309cc5bca96aee6a45117e7c98.tar.xz linux-80af9e6d7ae633309cc5bca96aee6a45117e7c98.zip |
pcmcia at91_cf: fix raw gpio number usage
This patches fixes two things:
* Use gpio_valid function to check gpio before usage
This must be done after 63b4c29678500 which uses -EINVAL for unused pin's
* Use gpio_to_irq to convert gpio's to irq
The driver assumed a 1:1 mapping between gpio and irq numbers. This is no
longer true after d0fbda9add3281.
Tested on custom RM9200 board with 8gb CF card.
Signed-off-by: Joachim Eastwood <joachim.eastwood@jotron.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/pxa2xx_cm_x270.c')
0 files changed, 0 insertions, 0 deletions