summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-06-07 06:43:29 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-07 06:43:29 +0200
commitbe19c4ab813a0fec6cd8204a998e8904ad0f8ed3 (patch)
tree0548c796e84c18843c9ee20368c4e7a240c8e9c1 /drivers
parentMerge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux (diff)
parentof/dynamic: Fix test for PPC_PSERIES (diff)
downloadlinux-be19c4ab813a0fec6cd8204a998e8904ad0f8ed3.tar.xz
linux-be19c4ab813a0fec6cd8204a998e8904ad0f8ed3.zip
Merge tag 'devicetree-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/glikely/linux
Pull devicetree fix from Grant Likely: "Stupid typo fix for v4.1. One of the IS_ENABLED() macro calls forgot the CONFIG_ prefix. Only affects a tiny number of platforms, but still..." * tag 'devicetree-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/glikely/linux: of/dynamic: Fix test for PPC_PSERIES
Diffstat (limited to 'drivers')
-rw-r--r--drivers/of/dynamic.c2
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)
phandle = __of_get_property(np, "phandle", &sz);
if (!phandle)
phandle = __of_get_property(np, "linux,phandle", &sz);
- if (IS_ENABLED(PPC_PSERIES) && !phandle)
+ if (IS_ENABLED(CONFIG_PPC_PSERIES) && !phandle)
phandle = __of_get_property(np, "ibm,phandle", &sz);
np->phandle = (phandle && (sz >= 4)) ? be32_to_cpup(phandle) : 0;