diff options
author | Dale Farnsworth <dale@farnsworth.org> | 2008-04-07 18:09:51 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-15 07:21:24 -0400 |
commit | a05ce88ab3e8a022ee17d89ecf86f6929c89c50e (patch) | |
tree | e7c84d274436248ef60ca14edf0a639c5fd2b079 /arch/powerpc/boot/mv64x60.c | |
parent | a1810b44c2d52392cd63e17fc208783cf6be6215 (diff) |
[POWERPC] mv64x60: Remove device tree absolute path references
Replace several device node absolute path lookups in the mv64x60
bootwrapper code with lookups by compatible or device_type
properties.
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/mv64x60.c')
-rw-r--r-- | arch/powerpc/boot/mv64x60.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/boot/mv64x60.c b/arch/powerpc/boot/mv64x60.c index b43259455d4b..d9bb302b91d2 100644 --- a/arch/powerpc/boot/mv64x60.c +++ b/arch/powerpc/boot/mv64x60.c | |||
@@ -535,7 +535,7 @@ u8 *mv64x60_get_bridge_pbase(void) | |||
535 | u32 v[2]; | 535 | u32 v[2]; |
536 | void *devp; | 536 | void *devp; |
537 | 537 | ||
538 | devp = finddevice("/mv64x60"); | 538 | devp = find_node_by_compatible(NULL, "marvell,mv64360"); |
539 | if (devp == NULL) | 539 | if (devp == NULL) |
540 | goto err_out; | 540 | goto err_out; |
541 | if (getprop(devp, "reg", v, sizeof(v)) != sizeof(v)) | 541 | if (getprop(devp, "reg", v, sizeof(v)) != sizeof(v)) |
@@ -553,7 +553,7 @@ u8 *mv64x60_get_bridge_base(void) | |||
553 | u32 v; | 553 | u32 v; |
554 | void *devp; | 554 | void *devp; |
555 | 555 | ||
556 | devp = finddevice("/mv64x60"); | 556 | devp = find_node_by_compatible(NULL, "marvell,mv64360"); |
557 | if (devp == NULL) | 557 | if (devp == NULL) |
558 | goto err_out; | 558 | goto err_out; |
559 | if (getprop(devp, "virtual-reg", &v, sizeof(v)) != sizeof(v)) | 559 | if (getprop(devp, "virtual-reg", &v, sizeof(v)) != sizeof(v)) |