diff options
Diffstat (limited to 'drivers/watchdog/bcm47xx_wdt.c')
-rw-r--r-- | drivers/watchdog/bcm47xx_wdt.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/watchdog/bcm47xx_wdt.c b/drivers/watchdog/bcm47xx_wdt.c index bd44417c84d4..c43406c48613 100644 --- a/drivers/watchdog/bcm47xx_wdt.c +++ b/drivers/watchdog/bcm47xx_wdt.c | |||
@@ -54,12 +54,20 @@ static atomic_t ticks; | |||
54 | static inline void bcm47xx_wdt_hw_start(void) | 54 | static inline void bcm47xx_wdt_hw_start(void) |
55 | { | 55 | { |
56 | /* this is 2,5s on 100Mhz clock and 2s on 133 Mhz */ | 56 | /* this is 2,5s on 100Mhz clock and 2s on 133 Mhz */ |
57 | ssb_watchdog_timer_set(&ssb_bcm47xx, 0xfffffff); | 57 | switch (bcm47xx_bus_type) { |
58 | case BCM47XX_BUS_TYPE_SSB: | ||
59 | ssb_watchdog_timer_set(&bcm47xx_bus.ssb, 0xfffffff); | ||
60 | break; | ||
61 | } | ||
58 | } | 62 | } |
59 | 63 | ||
60 | static inline int bcm47xx_wdt_hw_stop(void) | 64 | static inline int bcm47xx_wdt_hw_stop(void) |
61 | { | 65 | { |
62 | return ssb_watchdog_timer_set(&ssb_bcm47xx, 0); | 66 | switch (bcm47xx_bus_type) { |
67 | case BCM47XX_BUS_TYPE_SSB: | ||
68 | return ssb_watchdog_timer_set(&bcm47xx_bus.ssb, 0); | ||
69 | } | ||
70 | return -EINVAL; | ||
63 | } | 71 | } |
64 | 72 | ||
65 | static void bcm47xx_timer_tick(unsigned long unused) | 73 | static void bcm47xx_timer_tick(unsigned long unused) |