[PATCH] pcmcia at91_cf: fix raw gpio number usage

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Jan 10 08:56:49 EST 2012


On 02:37 Tue 10 Jan     , 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.
> 
> Signed-off-by: Joachim Eastwood <joachim.eastwood at jotron.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>


Best Regards,
J.



More information about the linux-pcmcia mailing list