]> git.baikalelectronics.ru Git - kernel.git/commit
pcmcia: db1xxx_ss: fix last irq_to_gpio user
authorManuel Lauss <manuel.lauss@gmail.com>
Wed, 2 Mar 2016 09:34:43 +0000 (10:34 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Mar 2016 20:48:53 +0000 (22:48 +0200)
commit5e7de1c7e6d6fb33c21cc76e91b0a91498ebc3bc
tree7191f1165f60d51561561320b466f8c96d5973d5
parent32a7b567bdadba9f23a39a269dc0f4aea8c6b90c
pcmcia: db1xxx_ss: fix last irq_to_gpio user

remove the usage of removed irq_to_gpio() function.  On pre-DB1200
boards, pass the actual carddetect GPIO number instead of the IRQ,
because we need the gpio to actually test card status (inserted or
not) and can get the irq number with gpio_to_irq() instead.

Tested on DB1300 and DB1500, this patch fixes PCMCIA on the DB1500,
which used irq_to_gpio().

Fixes: 47c9893921d8 ("MIPS: Remove all the uses of custom gpio.h")
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-pcmcia@lists.infradead.org
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Cc: stable@vger.kernel.org # v4.3+
Patchwork: https://patchwork.linux-mips.org/patch/12747/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/devboards/db1000.c
arch/mips/alchemy/devboards/db1550.c
drivers/pcmcia/db1xxx_ss.c