2017-08-30 18:32:36

by Artur Lorincz

[permalink] [raw]
Subject: [PATCH] default implementation for of_find_all_nodes(...)

Added default implementation for of_find_all_nodes(). This function is
used by board.c from the board module (drivers/staging/board).

Signed-off-by: Artur Lorincz <[email protected]>
---
include/linux/of.h | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index 4a8a709..0a9c17a 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -865,6 +865,11 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag

#define of_match_ptr(_ptr) NULL
#define of_match_node(_matches, _node) NULL
+
+static inline struct device_node *of_find_all_nodes(struct device_node *prev)
+{
+ return NULL;
+}
#endif /* CONFIG_OF */

/* Default string compare functions, Allow arch asm/prom.h to override */
--
1.9.1


2017-09-24 15:51:06

by Artur Lorincz

[permalink] [raw]
Subject: [PATCH] default implementation for of_find_all_nodes(...)

Added default implementation for of_find_all_nodes(). This function is
used by board.c from the board module (drivers/staging/board).

Signed-off-by: Artur Lorincz <[email protected]>
---
include/linux/of.h | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index 4a8a709..0a9c17a 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -865,6 +865,11 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag

#define of_match_ptr(_ptr) NULL
#define of_match_node(_matches, _node) NULL
+
+static inline struct device_node *of_find_all_nodes(struct device_node *prev)
+{
+ return NULL;
+}
#endif /* CONFIG_OF */

/* Default string compare functions, Allow arch asm/prom.h to override */
--
1.9.1

2017-09-24 17:50:46

by Frank Rowand

[permalink] [raw]
Subject: Re: [PATCH] default implementation for of_find_all_nodes(...)

Adding Rob Herring.

On 09/24/17 08:50, Artur Lorincz wrote:
> Added default implementation for of_find_all_nodes(). This function is
> used by board.c from the board module (drivers/staging/board).
>
> Signed-off-by: Artur Lorincz <[email protected]>
> ---
> include/linux/of.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index 4a8a709..0a9c17a 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -865,6 +865,11 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag
>
> #define of_match_ptr(_ptr) NULL
> #define of_match_node(_matches, _node) NULL
> +
> +static inline struct device_node *of_find_all_nodes(struct device_node *prev)
> +{
> + return NULL;
> +}
> #endif /* CONFIG_OF */
>
> /* Default string compare functions, Allow arch asm/prom.h to override */
> --
> 1.9.1
>
>

2017-09-24 15:50:58

by Artur Lorincz

[permalink] [raw]
Subject:

Hello,

Could you please send me an update about this patch?

Thanks,
Artur