of: unify phandle name in struct device_node
In struct device_node, the phandle is named 'linux_phandle' for PowerPC and MicroBlaze, and 'node' for SPARC. There is no good reason for the difference, it is just an artifact of the code diverging over a couple of years. This patch renames both to simply .phandle. Note: the .node also existed in PowerPC/MicroBlaze, but the only user seems to be arch/powerpc/platforms/powermac/pfunc_core.c. It doesn't look like the assignment between .linux_phandle and .node is significantly different enough to warrant the separate code paths unless ibm,phandle properties actually appear in Apple device trees. I think it is safe to eliminate the old .node property and use phandle everywhere. Signed-off-by:Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Tested-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Showing
- arch/microblaze/kernel/of_platform.c 1 addition, 1 deletionarch/microblaze/kernel/of_platform.c
- arch/microblaze/kernel/prom.c 1 addition, 1 deletionarch/microblaze/kernel/prom.c
- arch/powerpc/kernel/of_platform.c 1 addition, 1 deletionarch/powerpc/kernel/of_platform.c
- arch/powerpc/kernel/prom.c 3 additions, 3 deletionsarch/powerpc/kernel/prom.c
- arch/powerpc/platforms/cell/spu_manage.c 3 additions, 3 deletionsarch/powerpc/platforms/cell/spu_manage.c
- arch/powerpc/platforms/powermac/pfunc_core.c 1 addition, 1 deletionarch/powerpc/platforms/powermac/pfunc_core.c
- arch/sparc/kernel/devices.c 1 addition, 1 deletionarch/sparc/kernel/devices.c
- arch/sparc/kernel/of_device_32.c 1 addition, 1 deletionarch/sparc/kernel/of_device_32.c
- arch/sparc/kernel/of_device_64.c 1 addition, 1 deletionarch/sparc/kernel/of_device_64.c
- arch/sparc/kernel/prom_common.c 4 additions, 4 deletionsarch/sparc/kernel/prom_common.c
- arch/sparc/kernel/smp_64.c 1 addition, 1 deletionarch/sparc/kernel/smp_64.c
- drivers/of/fdt.c 3 additions, 4 deletionsdrivers/of/fdt.c
- drivers/sbus/char/openprom.c 5 additions, 5 deletionsdrivers/sbus/char/openprom.c
- drivers/video/aty/atyfb_base.c 1 addition, 1 deletiondrivers/video/aty/atyfb_base.c
- include/linux/of.h 1 addition, 4 deletionsinclude/linux/of.h
- sound/aoa/fabrics/layout.c 1 addition, 1 deletionsound/aoa/fabrics/layout.c
Loading
Please register or sign in to comment