diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-01-26 15:38:35 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-30 15:07:06 -0500 |
commit | a6ca2e10f795111a90a4efabb07717258669e03d (patch) | |
tree | e39ccc815a49c0d07587ae412305666f1277b85f /include/linux/ssb | |
parent | 5b2e2eccab80e2f56d06df582e473fb0d8630f35 (diff) |
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>
Diffstat (limited to 'include/linux/ssb')
-rw-r--r-- | include/linux/ssb/ssb_driver_mips.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ssb/ssb_driver_mips.h b/include/linux/ssb/ssb_driver_mips.h index 07a9c7a2e088..afe79d40a99e 100644 --- a/include/linux/ssb/ssb_driver_mips.h +++ b/include/linux/ssb/ssb_driver_mips.h | |||
@@ -45,6 +45,11 @@ void ssb_mipscore_init(struct ssb_mipscore *mcore) | |||
45 | { | 45 | { |
46 | } | 46 | } |
47 | 47 | ||
48 | static inline unsigned int ssb_mips_irq(struct ssb_device *dev) | ||
49 | { | ||
50 | return 0; | ||
51 | } | ||
52 | |||
48 | #endif /* CONFIG_SSB_DRIVER_MIPS */ | 53 | #endif /* CONFIG_SSB_DRIVER_MIPS */ |
49 | 54 | ||
50 | #endif /* LINUX_SSB_MIPSCORE_H_ */ | 55 | #endif /* LINUX_SSB_MIPSCORE_H_ */ |