mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
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 after63b4c29678which 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 afterd0fbda9add. 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>
This commit is contained in:
parent
f24fa8affe
commit
80af9e6d7a
1 changed files with 26 additions and 26 deletions
Loading…
Add table
Add a link
Reference in a new issue