[PATCH 2/3] wd: add stub for of_get_watchdog_priority

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allow drivers to build even if WD core isn't enabled.

Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx>
---
 include/watchdog.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/include/watchdog.h b/include/watchdog.h
index 6fd896734b4b..3e8a487a4de9 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 */
-- 
2.5.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux