]> git.baikalelectronics.ru Git - kernel.git/commit
ssb: add gpio_to_irq
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 26 Jan 2013 20:38:35 +0000 (21:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Jan 2013 20:07:06 +0000 (15:07 -0500)
commitff5b63cd8c4111f530efc1af840f3625adcd67d2
treee39ccc815a49c0d07587ae412305666f1277b85f
parenta5ed6b1a0b127189ebb87d98161b1d11066599fc
ssb: add gpio_to_irq

The old bcm47xx gpio code had support for gpio_to_irq, but the new
code did not provide this function, but returned -ENXIO all the time.
This patch adds the missing function.

arch/mips/bcm47xx/wgt634u.c calls gpio_to_irq() and got the correct irq
number with the old gpio handling code. With this patch the code in
wgt634u.c should work again. I do not have a wgt634u to test this.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/driver_gpio.c
include/linux/ssb/ssb_driver_mips.h