* [PATCH] of: add stub of_get_child_by_name for non-OF builds
@ 2012-10-07 17:40 Olof Johansson
2012-10-08 13:47 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Olof Johansson @ 2012-10-07 17:40 UTC (permalink / raw)
To: linux-arm-kernel
Fixes build error on s3c6400_defconfig, introduced by commit
06455bbcab76e5f5225de5f38ab948d37a1c3587, "dt/s3c64xx/spi: Use
of_get_child_by_name to get a named child".
drivers/spi/spi-s3c64xx.c: In function 's3c64xx_get_slave_ctrldata':
drivers/spi/spi-s3c64xx.c:838:2: error: implicit declaration of function
'of_get_child_by_name' [-Werror=implicit-function-declaration]
Signed-off-by: Olof Johansson <olof@lixom.net>
---
include/linux/of.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 72843b7..b4e50d5 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -331,6 +331,13 @@ static inline bool of_have_populated_dt(void)
#define for_each_child_of_node(parent, child) \
while (0)
+static inline struct device_node *of_get_child_by_name(
+ const struct device_node *node,
+ const char *name)
+{
+ return NULL;
+}
+
static inline int of_get_child_count(const struct device_node *np)
{
return 0;
--
1.7.10.1.488.g05fbf7a
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] of: add stub of_get_child_by_name for non-OF builds
2012-10-07 17:40 [PATCH] of: add stub of_get_child_by_name for non-OF builds Olof Johansson
@ 2012-10-08 13:47 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2012-10-08 13:47 UTC (permalink / raw)
To: linux-arm-kernel
On 10/07/2012 12:40 PM, Olof Johansson wrote:
> Fixes build error on s3c6400_defconfig, introduced by commit
> 06455bbcab76e5f5225de5f38ab948d37a1c3587, "dt/s3c64xx/spi: Use
> of_get_child_by_name to get a named child".
>
> drivers/spi/spi-s3c64xx.c: In function 's3c64xx_get_slave_ctrldata':
> drivers/spi/spi-s3c64xx.c:838:2: error: implicit declaration of function
> 'of_get_child_by_name' [-Werror=implicit-function-declaration]
>
> Signed-off-by: Olof Johansson <olof@lixom.net>
> ---
Applied, thanks.
Rob
> include/linux/of.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index 72843b7..b4e50d5 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -331,6 +331,13 @@ static inline bool of_have_populated_dt(void)
> #define for_each_child_of_node(parent, child) \
> while (0)
>
> +static inline struct device_node *of_get_child_by_name(
> + const struct device_node *node,
> + const char *name)
> +{
> + return NULL;
> +}
> +
> static inline int of_get_child_count(const struct device_node *np)
> {
> return 0;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-08 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-07 17:40 [PATCH] of: add stub of_get_child_by_name for non-OF builds Olof Johansson
2012-10-08 13:47 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).