diff --git a/include/reset_source.h b/include/reset_source.h index d484836..3ff06b7 100644 --- a/include/reset_source.h +++ b/include/reset_source.h @@ -27,6 +27,7 @@ #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 @@ { 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 @@ 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 */