From: Joachim Eastwood Date: Tue, 10 Jan 2012 01:37:25 +0000 (+0100) Subject: pcmcia at91_cf: fix raw gpio number usage X-Git-Tag: v3.4-rc1~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80af9e6d7ae633309cc5bca96aee6a45117e7c98;p=pandora-kernel.git 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 Acked-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Dominik Brodowski --- Reading git-diff-tree failed