PERFORCE change 173998 for review

Rafal Jaworowski raj at FreeBSD.org
Sun Jan 31 10:17:22 UTC 2010


http://p4web.freebsd.org/chv.cgi?CH=173998

Change 173998 by raj at raj_fdt on 2010/01/31 10:17:04

	Provide a fallback method of finding the MPP node if no entry in
	/aliases.

Affected files ...

.. //depot/projects/fdt/sys/arm/mv/mv_machdep.c#5 edit

Differences ...

==== //depot/projects/fdt/sys/arm/mv/mv_machdep.c#5 (text+ko) ====

@@ -693,8 +693,15 @@
 
 	/*
 	 * Find the node the long way.
-	 * TODO
 	 */
+	if ((node = OF_finddevice("/")) == 0)
+		return (ENXIO);
+
+	if ((node = fdt_find_compatible(node, "simple-bus")) == 0)
+		return (ENXIO);
+
+	if ((node = fdt_find_compatible(node, "mrvl,mpp")) == 0)
+		return (ENXIO);
 
 moveon:
 	/*


More information about the p4-projects mailing list