diff options
| author | Daniel Palmer <daniel@thingy.jp> | 2026-06-04 00:18:09 +0900 |
|---|---|---|
| committer | Rob Herring (Arm) <robh@kernel.org> | 2026-06-03 21:01:40 -0500 |
| commit | 0c1b852f13e207d642cef5c22002a91c8f07673e (patch) | |
| tree | 139eda87d4f926ab440426cdaac72d952d7d35d6 /drivers/of | |
| parent | e6744a3fefcea709d46f7a1c507d588cb841c919 (diff) | |
| download | linux-next-0c1b852f13e207d642cef5c22002a91c8f07673e.tar.gz linux-next-0c1b852f13e207d642cef5c22002a91c8f07673e.zip | |
drivers/of: fdt: Make ibm,phandle logic only happen on pseries
The "ibm,phandle" thing only seems to be needed on pseries
machines but everyone gets it so they get a string and a little
bit of useless code.
In __of_attach_node() the pseries specific part uses
IS_ENABLED(CONFIG_PPC_PSERIES) so do that here too.
Signed-off-by: Daniel Palmer <daniel@thingy.jp>
Link: https://patch.msgid.link/20260603151809.3256280-1-daniel@thingy.jp
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'drivers/of')
| -rw-r--r-- | drivers/of/fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index ba65e36e183c..26f66046cc32 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -145,7 +145,7 @@ static void populate_properties(const void *blob, * used in pSeries dynamic device tree * stuff */ - if (!strcmp(pname, "ibm,phandle")) + if (IS_ENABLED(CONFIG_PPC_PSERIES) && !strcmp(pname, "ibm,phandle")) np->phandle = be32_to_cpup(val); pp->name = (char *)pname; |
