From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 3/3] reset-source: add stub for of_get_reset_source_priority
Date: Thu, 3 Sep 2015 10:00:56 +0200 [thread overview]
Message-ID: <1441267256-17522-3-git-send-email-l.stach@pengutronix.de> (raw)
In-Reply-To: <1441267256-17522-1-git-send-email-l.stach@pengutronix.de>
Allow drivers to build even if reset source support isn't built in.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-09-03 8:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-03 8:00 [PATCH 1/3] mfd: da9053: remove references to nonexistent cdev member Lucas Stach
2015-09-03 8:00 ` [PATCH 2/3] wd: add stub for of_get_watchdog_priority Lucas Stach
2015-09-03 8:00 ` Lucas Stach [this message]
2015-09-04 6:02 ` [PATCH 1/3] mfd: da9053: remove references to nonexistent cdev member Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1441267256-17522-3-git-send-email-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox