diff options
| author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-01-26 15:39:44 -0500 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2013-01-30 15:07:06 -0500 |
| commit | 8f1ca2683225afa21b827ff620a6225c390771a9 (patch) | |
| tree | e3ce18950e47ce417323527f1bfba59b64ed80f5 /include/linux | |
| parent | a6ca2e10f795111a90a4efabb07717258669e03d (diff) | |
bcma: 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.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bcma/bcma_driver_mips.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/bcma/bcma_driver_mips.h b/include/linux/bcma/bcma_driver_mips.h index 0d1ea297851a..fb61f3fb4ddb 100644 --- a/include/linux/bcma/bcma_driver_mips.h +++ b/include/linux/bcma/bcma_driver_mips.h | |||
| @@ -42,13 +42,18 @@ struct bcma_drv_mips { | |||
| 42 | #ifdef CONFIG_BCMA_DRIVER_MIPS | 42 | #ifdef CONFIG_BCMA_DRIVER_MIPS |
| 43 | extern void bcma_core_mips_init(struct bcma_drv_mips *mcore); | 43 | extern void bcma_core_mips_init(struct bcma_drv_mips *mcore); |
| 44 | extern void bcma_core_mips_early_init(struct bcma_drv_mips *mcore); | 44 | extern void bcma_core_mips_early_init(struct bcma_drv_mips *mcore); |
| 45 | |||
| 46 | extern unsigned int bcma_core_irq(struct bcma_device *core); | ||
| 45 | #else | 47 | #else |
| 46 | static inline void bcma_core_mips_init(struct bcma_drv_mips *mcore) { } | 48 | static inline void bcma_core_mips_init(struct bcma_drv_mips *mcore) { } |
| 47 | static inline void bcma_core_mips_early_init(struct bcma_drv_mips *mcore) { } | 49 | static inline void bcma_core_mips_early_init(struct bcma_drv_mips *mcore) { } |
| 50 | |||
| 51 | static inline unsigned int bcma_core_irq(struct bcma_device *core) | ||
| 52 | { | ||
| 53 | return 0; | ||
| 54 | } | ||
| 48 | #endif | 55 | #endif |
| 49 | 56 | ||
| 50 | extern u32 bcma_cpu_clock(struct bcma_drv_mips *mcore); | 57 | extern u32 bcma_cpu_clock(struct bcma_drv_mips *mcore); |
| 51 | 58 | ||
| 52 | extern unsigned int bcma_core_irq(struct bcma_device *core); | ||
| 53 | |||
| 54 | #endif /* LINUX_BCMA_DRIVER_MIPS_H_ */ | 59 | #endif /* LINUX_BCMA_DRIVER_MIPS_H_ */ |
