2014-10-02 14:01:15

by Thierry Reding

[permalink] [raw]
Subject: [PATCH] of: Fix padding in _OF_DECLARE macro definition

From: Thierry Reding <[email protected]>

Signed-off-by: Thierry Reding <[email protected]>
---
include/linux/of.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/of.h b/include/linux/of.h
index 6c4363b8ddc3..951e9ee7d3e0 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -772,7 +772,7 @@ static inline int of_get_available_child_count(const struct device_node *np)
= { .compatible = compat, \
.data = (fn == (fn_type)NULL) ? fn : fn }
#else
-#define _OF_DECLARE(table, name, compat, fn, fn_type) \
+#define _OF_DECLARE(table, name, compat, fn, fn_type) \
static const struct of_device_id __of_table_##name \
__attribute__((unused)) \
= { .compatible = compat, \
--
2.1.0


2014-11-04 16:30:32

by Grant Likely

[permalink] [raw]
Subject: Re: [PATCH] of: Fix padding in _OF_DECLARE macro definition

On Thu, 2 Oct 2014 16:01:10 +0200
, Thierry Reding <[email protected]>
wrote:
> From: Thierry Reding <[email protected]>
>
> Signed-off-by: Thierry Reding <[email protected]>

Applied, thanks.

g.

> ---
> include/linux/of.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index 6c4363b8ddc3..951e9ee7d3e0 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -772,7 +772,7 @@ static inline int of_get_available_child_count(const struct device_node *np)
> = { .compatible = compat, \
> .data = (fn == (fn_type)NULL) ? fn : fn }
> #else
> -#define _OF_DECLARE(table, name, compat, fn, fn_type) \
> +#define _OF_DECLARE(table, name, compat, fn, fn_type) \
> static const struct of_device_id __of_table_##name \
> __attribute__((unused)) \
> = { .compatible = compat, \
> --
> 2.1.0
>