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 01/02] of: Add OF_ADDRESS=n stub for of_can_translate_address()
Date: Fri, 06 Jun 2014 20:59:18 +0900 [thread overview]
Message-ID: <20140606115918.4584.2306.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_ADDRESS=n case of
of_translate_address(). The return value for the
stub is false which is in sync with when the full
version of the function does not support address
translation. Added to allow removal of Kconfig
dependency handling for CONFIG_OF_ADDRESS.
Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---
include/linux/of_address.h | 5 +++++
1 file changed, 5 insertions(+)
--- 0001/include/linux/of_address.h
+++ work/include/linux/of_address.h 2014-06-06 19:04:44.000000000 +0900
@@ -64,6 +64,11 @@ extern struct of_pci_range *of_pci_range
struct of_pci_range_parser *parser,
struct of_pci_range *range);
#else /* CONFIG_OF_ADDRESS */
+static inline bool of_can_translate_address(struct device_node *dev)
+{
+ return false;
+}
+
static inline struct device_node *of_find_matching_node_by_address(
struct device_node *from,
const struct of_device_id *matches,
next prev 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 ` Magnus Damm [this message]
2014-06-06 13:37 ` [PATCH 01/02] of: Add OF_ADDRESS=n stub for of_can_translate_address() Rob Herring
2014-06-06 11:59 ` [PATCH 02/02] of: Add OF=n stub for of_find_all_nodes() Magnus Damm
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=20140606115918.4584.2306.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