[PATCH 3/3] reset-source: add stub for of_get_reset_source_priority

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

 



Allow drivers to build even if reset source support isn't built in.

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

diff --git a/include/reset_source.h b/include/reset_source.h
index d484836dff0c..3ff06b70ad1f 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 */
-- 
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