diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2015-09-03 10:00:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-04 08:02:18 +0200 |
commit | 200ba6cdeea8e023a6af94cd5aeefce4b2daf879 (patch) | |
tree | e634e063c5f3a5750214f9d4d4b6e29e935a69b0 /include | |
parent | e38c778b9afc4f519fb998fda575b2b610d788dc (diff) | |
download | barebox-200ba6cdeea8e023a6af94cd5aeefce4b2daf879.tar.gz barebox-200ba6cdeea8e023a6af94cd5aeefce4b2daf879.tar.xz |
reset-source: add stub for of_get_reset_source_priority
Allow drivers to build even if reset source support isn't built in.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/reset_source.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/reset_source.h b/include/reset_source.h index d484836dff..3ff06b70ad 100644 --- a/include/reset_source.h +++ b/include/reset_source.h @@ -27,6 +27,7 @@ enum reset_src_type { #ifdef CONFIG_RESET_SOURCE void reset_source_set_priority(enum reset_src_type, unsigned int priority); enum reset_src_type reset_source_get(void); +unsigned int of_get_reset_source_priority(struct device_node *node); #else static inline void reset_source_set_priority(enum reset_src_type type, unsigned int priority) @@ -37,6 +38,11 @@ static inline enum reset_src_type reset_source_get(void) { return RESET_UKWN; } + +static inline unsigned int of_get_reset_source_priority(struct device_node *node) +{ + return 0; +} #endif #define RESET_SOURCE_DEFAULT_PRIORITY 100 @@ -46,6 +52,4 @@ static inline void reset_source_set(enum reset_src_type type) reset_source_set_priority(type, RESET_SOURCE_DEFAULT_PRIORITY); } -unsigned int of_get_reset_source_priority(struct device_node *node); - #endif /* __INCLUDE_RESET_SOURCE_H */ |