diff options
| author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-11-26 18:31:55 -0500 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-11-30 13:38:14 -0500 |
| commit | 0362063b7be97f6f8e2c644b970f5726489aacdf (patch) | |
| tree | 11230e5afa3c4c74499a5dfa895a419a22b57ea4 /include/linux/ssb | |
| parent | 4a7267c9a03b9627e5e85c80b307eb4541bab902 (diff) | |
ssb: extif: fix compile errors
If CONFIG_SSB_EMBEDDED or CONFIG_SSB_DRIVER_MIPS is set and
CONFIG_SSB_DRIVER_EXTIF is not set, it will cause compile problems
because of missing functions. This patch fixes these problems.
The mips driver now also uses ssb_chipco_available() instead of
checking bus->chipco.dev manually.
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_extif.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/linux/ssb/ssb_driver_extif.h b/include/linux/ssb/ssb_driver_extif.h index 91161f0aa22b..2604efa7dc4d 100644 --- a/include/linux/ssb/ssb_driver_extif.h +++ b/include/linux/ssb/ssb_driver_extif.h | |||
| @@ -205,10 +205,52 @@ void ssb_extif_get_clockcontrol(struct ssb_extif *extif, | |||
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | static inline | 207 | static inline |
| 208 | void ssb_extif_timing_init(struct ssb_extif *extif, unsigned long ns) | ||
| 209 | { | ||
| 210 | } | ||
| 211 | |||
| 212 | static inline | ||
| 208 | void ssb_extif_watchdog_timer_set(struct ssb_extif *extif, | 213 | void ssb_extif_watchdog_timer_set(struct ssb_extif *extif, |
| 209 | u32 ticks) | 214 | u32 ticks) |
| 210 | { | 215 | { |
| 211 | } | 216 | } |
| 212 | 217 | ||
| 218 | static inline u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask) | ||
| 219 | { | ||
| 220 | return 0; | ||
| 221 | } | ||
| 222 | |||
| 223 | static inline u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, | ||
| 224 | u32 value) | ||
| 225 | { | ||
| 226 | return 0; | ||
| 227 | } | ||
| 228 | |||
| 229 | static inline u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, | ||
| 230 | u32 value) | ||
| 231 | { | ||
| 232 | return 0; | ||
| 233 | } | ||
| 234 | |||
| 235 | static inline u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, | ||
| 236 | u32 value) | ||
| 237 | { | ||
| 238 | return 0; | ||
| 239 | } | ||
| 240 | |||
| 241 | static inline u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, | ||
| 242 | u32 value) | ||
| 243 | { | ||
| 244 | return 0; | ||
| 245 | } | ||
| 246 | |||
| 247 | #ifdef CONFIG_SSB_SERIAL | ||
| 248 | static inline int ssb_extif_serial_init(struct ssb_extif *extif, | ||
| 249 | struct ssb_serial_port *ports) | ||
| 250 | { | ||
| 251 | return 0; | ||
| 252 | } | ||
| 253 | #endif /* CONFIG_SSB_SERIAL */ | ||
| 254 | |||
| 213 | #endif /* CONFIG_SSB_DRIVER_EXTIF */ | 255 | #endif /* CONFIG_SSB_DRIVER_EXTIF */ |
| 214 | #endif /* LINUX_SSB_EXTIFCORE_H_ */ | 256 | #endif /* LINUX_SSB_EXTIFCORE_H_ */ |
