aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/mv64x60_i2c.c
diff options
context:
space:
mode:
authorDale Farnsworth <dale@farnsworth.org>2008-04-07 18:09:51 -0400
committerPaul Mackerras <paulus@samba.org>2008-04-15 07:21:24 -0400
commita05ce88ab3e8a022ee17d89ecf86f6929c89c50e (patch)
treee7c84d274436248ef60ca14edf0a639c5fd2b079 /arch/powerpc/boot/mv64x60_i2c.c
parenta1810b44c2d52392cd63e17fc208783cf6be6215 (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_i2c.c')
-rw-r--r--arch/powerpc/boot/mv64x60_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/boot/mv64x60_i2c.c b/arch/powerpc/boot/mv64x60_i2c.c
index d085377be3bc..52a3212b6638 100644
--- a/arch/powerpc/boot/mv64x60_i2c.c
+++ b/arch/powerpc/boot/mv64x60_i2c.c
@@ -185,7 +185,7 @@ int mv64x60_i2c_open(void)
185 u32 v; 185 u32 v;
186 void *devp; 186 void *devp;
187 187
188 devp = finddevice("/mv64x60/i2c"); 188 devp = find_node_by_compatible(NULL, "marvell,mv64360-i2c");
189 if (devp == NULL) 189 if (devp == NULL)
190 goto err_out; 190 goto err_out;
191 if (getprop(devp, "virtual-reg", &v, sizeof(v)) != sizeof(v)) 191 if (getprop(devp, "virtual-reg", &v, sizeof(v)) != sizeof(v))