mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 2/3] reset: Remove unused *_optional functions
Date: Mon, 23 Nov 2015 10:24:30 +0100	[thread overview]
Message-ID: <1448270671-24307-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1448270671-24307-1-git-send-email-s.hauer@pengutronix.de>

Since we now have dummy reset controllers we no longer need the
*_optional functions. These have been unused anyway, so just remove
them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 include/linux/reset.h | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/include/linux/reset.h b/include/linux/reset.h
index f6c475c..3f810bd 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -15,17 +15,6 @@ void reset_control_put(struct reset_control *rstc);
 
 int __must_check device_reset(struct device_d *dev);
 
-static inline int device_reset_optional(struct device_d *dev)
-{
-	return device_reset(dev);
-}
-
-static inline struct reset_control *reset_control_get_optional(
-					struct device_d *dev, const char *id)
-{
-	return reset_control_get(dev, id);
-}
-
 #else
 
 static inline int reset_control_reset(struct reset_control *rstc)
@@ -51,17 +40,6 @@ static inline void reset_control_put(struct reset_control *rstc)
 	WARN_ON(1);
 }
 
-static inline int device_reset_optional(struct device_d *dev)
-{
-	return -ENOSYS;
-}
-
-static inline struct reset_control *reset_control_get_optional(
-					struct device_d *dev, const char *id)
-{
-	return ERR_PTR(-ENOSYS);
-}
-
 #endif /* CONFIG_RESET_CONTROLLER */
 
 #endif
-- 
2.6.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2015-11-23  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23  9:24 [PATCH 1/3] reset: Allow dummy reset lines Sascha Hauer
2015-11-23  9:24 ` Sascha Hauer [this message]
2015-11-23  9:24 ` [PATCH 3/3] reset: Add gpio reset support 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=1448270671-24307-2-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@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