[PATCH] pcmcia at91_cf: fix raw gpio number usage
Dominik Brodowski
linux at dominikbrodowski.net
Sun Feb 5 16:15:57 EST 2012
On Tue, Jan 10, 2012 at 02:37:25AM +0100, manabian at gmail.com wrote:
> From: Joachim Eastwood <joachim.eastwood at jotron.com>
>
> 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.
Applied, thanks.
Best,
Dominik
More information about the linux-pcmcia
mailing list