summaryrefslogtreecommitdiffstats
path: root/include/watchdog.h
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2015-09-03 10:00:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-09-04 08:02:18 +0200
commite38c778b9afc4f519fb998fda575b2b610d788dc (patch)
tree2f6f6c77af68579b5ae0473d180683d83764efab /include/watchdog.h
parent6e5b9b5ffd25bf9a8ac8f5518cd14c77672f04ec (diff)
downloadbarebox-e38c778b9afc4f519fb998fda575b2b610d788dc.tar.gz
barebox-e38c778b9afc4f519fb998fda575b2b610d788dc.tar.xz
wd: add stub for of_get_watchdog_priority
Allow drivers to build even if WD core isn't enabled. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/watchdog.h')
-rw-r--r--include/watchdog.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/watchdog.h b/include/watchdog.h
index 6fd896734b..3e8a487a4d 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -25,6 +25,7 @@ struct watchdog {
int watchdog_register(struct watchdog *);
int watchdog_deregister(struct watchdog *);
int watchdog_set_timeout(unsigned);
+unsigned int of_get_watchdog_priority(struct device_node *node);
#else
static inline int watchdog_register(struct watchdog *w)
{
@@ -40,10 +41,13 @@ static inline int watchdog_set_timeout(unsigned t)
{
return 0;
}
+
+static inline unsigned int of_get_watchdog_priority(struct device_node *node)
+{
+ return 0;
+}
#endif
#define WATCHDOG_DEFAULT_PRIORITY 100
-unsigned int of_get_watchdog_priority(struct device_node *node);
-
#endif /* INCLUDE_WATCHDOG_H */