diff options
author | Timur Tabi <timur@freescale.com> | 2011-05-10 15:28:14 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-07-22 01:49:39 -0500 |
commit | e4e7e42803ec2399211883ad7793406b7eafa776 (patch) | |
tree | bc6b57736ce5632c762a51377e27b7373ff1aa2b | |
parent | 74fac70084bb040342fafc3b0d2ef50fbe35646f (diff) | |
download | u-boot-imx-e4e7e42803ec2399211883ad7793406b7eafa776.zip u-boot-imx-e4e7e42803ec2399211883ad7793406b7eafa776.tar.gz u-boot-imx-e4e7e42803ec2399211883ad7793406b7eafa776.tar.bz2 |
powerpc/85xx: add support the ePAPR "phandle" property
The ePAPR specification says that phandle properties should be called
"phandle", and not "linux,phandle". To facilitate the migration from
"linux,phandle" to "phandle", we update fdt_qportal() to use the new
function, fdt_create_phandle(). This function abstracts the creation of
phandle properties.
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/cpu/mpc85xx/portals.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/portals.c b/arch/powerpc/cpu/mpc85xx/portals.c index c014163..ecaa30d 100644 --- a/arch/powerpc/cpu/mpc85xx/portals.c +++ b/arch/powerpc/cpu/mpc85xx/portals.c @@ -151,8 +151,10 @@ static int fdt_qportal(void *blob, int off, int id, char *name, dev_handle = fdt_get_phandle(blob, dev_off); if (dev_handle <= 0) { dev_handle = fdt_alloc_phandle(blob); - fdt_setprop_cell(blob, dev_off, - "linux,phandle", dev_handle); + ret = fdt_create_phandle(blob, dev_off, + dev_handle); + if (ret < 0) + return ret; } ret = fdt_setprop(blob, childoff, "dev-handle", |