diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-06-04 05:34:41 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2015-06-04 21:39:28 -0400 |
commit | f76502aa9140ec338a59487218bf70a9c9e92b8f (patch) | |
tree | e9466bdc1d35d86bf0ed1fcdd3b1a1fedffd7e68 /drivers/of | |
parent | c65b99f046843d2455aa231747b5a07a999a9f3d (diff) |
of/dynamic: Fix test for PPC_PSERIES
"IS_ENABLED(PPC_PSERIES)" always evaluates to false, as IS_ENABLED() is
supposed to be used with the full Kconfig symbol name, including the
"CONFIG_" prefix.
Add the missing "CONFIG_" prefix to fix this.
Fixes: a25095d451ece23b ("of: Move dynamic node fixups out of powerpc and into common code")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: stable@vger.kernel.org #+3.17
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/dynamic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c index 3351ef408125..53826b84e0ec 100644 --- a/drivers/of/dynamic.c +++ b/drivers/of/dynamic.c | |||
@@ -225,7 +225,7 @@ void __of_attach_node(struct device_node *np) | |||
225 | phandle = __of_get_property(np, "phandle", &sz); | 225 | phandle = __of_get_property(np, "phandle", &sz); |
226 | if (!phandle) | 226 | if (!phandle) |
227 | phandle = __of_get_property(np, "linux,phandle", &sz); | 227 | phandle = __of_get_property(np, "linux,phandle", &sz); |
228 | if (IS_ENABLED(PPC_PSERIES) && !phandle) | 228 | if (IS_ENABLED(CONFIG_PPC_PSERIES) && !phandle) |
229 | phandle = __of_get_property(np, "ibm,phandle", &sz); | 229 | phandle = __of_get_property(np, "ibm,phandle", &sz); |
230 | np->phandle = (phandle && (sz >= 4)) ? be32_to_cpup(phandle) : 0; | 230 | np->phandle = (phandle && (sz >= 4)) ? be32_to_cpup(phandle) : 0; |
231 | 231 | ||