public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: grant.likely@linaro.org, Magnus Damm <magnus.damm@gmail.com>,
	robh+dt@kernel.org
Subject: [PATCH 02/02] of: Add OF=n stub for of_find_all_nodes()
Date: Fri, 06 Jun 2014 20:59:25 +0900	[thread overview]
Message-ID: <20140606115925.4584.28783.sendpatchset@w520> (raw)
In-Reply-To: <20140606115909.4584.28612.sendpatchset@w520>

From: Magnus Damm <damm+renesas@opensource.se>

Add a stub for the CONFIG_OF=n case of of_find_all_nodes().
The return value for the stub is NULL which is in sync with
when the full version of the function cannot find any nodes
registered. Added to allow removal of Kconfig dependency
handling for CONFIG_OF.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 include/linux/of.h |    5 +++++
 1 file changed, 5 insertions(+)

--- 0001/include/linux/of.h
+++ work/include/linux/of.h	2014-06-06 19:00:38.000000000 +0900
@@ -349,6 +349,11 @@ int of_device_is_stdout_path(struct devi
 
 #else /* CONFIG_OF */
 
+static inline struct device_node *of_find_all_nodes(struct device_node *prev)
+{
+	return NULL;
+}
+
 static inline const char* of_node_full_name(const struct device_node *np)
 {
 	return "<no-node>";

      parent reply	other threads:[~2014-06-06 11:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06 11:59 [PATCH 00/02] of: Add two stubs for OF_ADDRESS=n and OF=n cases Magnus Damm
2014-06-06 11:59 ` [PATCH 01/02] of: Add OF_ADDRESS=n stub for of_can_translate_address() Magnus Damm
2014-06-06 13:37   ` Rob Herring
2014-06-06 11:59 ` Magnus Damm [this message]

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=20140606115925.4584.28783.sendpatchset@w520 \
    --to=magnus.damm@gmail.com \
    --cc=grant.likely@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.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