9
0
Fork 0

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>
This commit is contained in:
Lucas Stach 2015-09-03 10:00:55 +02:00 committed by Sascha Hauer
parent 6e5b9b5ffd
commit e38c778b9a
1 changed files with 6 additions and 2 deletions

View File

@ -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 */