summaryrefslogtreecommitdiff
path: root/include/linux/ssb/ssb_driver_chipcommon.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-02-19 12:41:30 +0100
committerJohn W. Linville <linville@tuxdriver.com>2008-02-20 20:11:49 -0500
commit42bfad4f71637c4eb4791aa8062063c4a8526522 (patch)
tree42c8c52d953aaa8f0418084af1e60c15e900488c /include/linux/ssb/ssb_driver_chipcommon.h
parent58ff70d4feae29cbb7ace410fa6585ef3afb44b6 (diff)
ssb: Fix watchdog access for devices without a chipcommon
This fixes the SSB watchdog access for devices without a chipcommon. These devices have the watchdog on the extif. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/ssb/ssb_driver_chipcommon.h')
-rw-r--r--include/linux/ssb/ssb_driver_chipcommon.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ssb/ssb_driver_chipcommon.h b/include/linux/ssb/ssb_driver_chipcommon.h
index 35717b400cef..89638153cbe1 100644
--- a/include/linux/ssb/ssb_driver_chipcommon.h
+++ b/include/linux/ssb/ssb_driver_chipcommon.h
@@ -360,6 +360,11 @@ struct ssb_chipcommon {
u16 fast_pwrup_delay;
};
+static inline bool ssb_chipco_available(struct ssb_chipcommon *cc)
+{
+ return (cc->dev != NULL);
+}
+
extern void ssb_chipcommon_init(struct ssb_chipcommon *cc);
#include <linux/pm.h>