mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org,
	Mark Brown <broonie@linaro.org>
Subject: [PATCH] reset: Provide !RESET_CONTROLLER stub for devm_reset_control_get()
Date: Fri,  1 Aug 2014 18:11:39 +0100	[thread overview]
Message-ID: <1406913099-13688-1-git-send-email-broonie@kernel.org> (raw)

From: Mark Brown <broonie@linaro.org>

At least the sun6i DMA controller driver makes use of the reset controller
API stubs when being built for coverage and otherwise fails to build.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 include/linux/reset.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/linux/reset.h b/include/linux/reset.h
index 349f150..28f119f 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -67,6 +67,13 @@ static inline int device_reset_optional(struct device *dev)
 	return -ENOSYS;
 }
 
+static inline struct reset_control *devm_reset_control_get(struct device *dev,
+							   const char *id)
+{
+	WARN_ON(1);
+	return ERR_PTR(-ENOSYS);
+}
+
 static inline struct reset_control *reset_control_get_optional(
 					struct device *dev, const char *id)
 {
-- 
2.0.0


             reply	other threads:[~2014-08-01 17:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 17:11 Mark Brown [this message]
2014-08-04  7:58 ` Philipp Zabel

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=1406913099-13688-1-git-send-email-broonie@kernel.org \
    --to=broonie@kernel.org \
    --cc=broonie@linaro.org \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    /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

all inboxes | Powered by JetHome®