|
@@ -342,19 +342,3 @@ phandle prom_inst2pkg(int inst)
|
|
|
if (node == -1) return 0;
|
|
|
return node;
|
|
|
}
|
|
|
-
|
|
|
-/* Return 'node' assigned to a particular prom 'path'
|
|
|
- * FIXME: Should work for v0 as well
|
|
|
- */
|
|
|
-phandle prom_pathtoinode(char *path)
|
|
|
-{
|
|
|
- phandle node;
|
|
|
- int inst;
|
|
|
-
|
|
|
- inst = prom_devopen (path);
|
|
|
- if (inst == -1) return 0;
|
|
|
- node = prom_inst2pkg (inst);
|
|
|
- prom_devclose (inst);
|
|
|
- if (node == -1) return 0;
|
|
|
- return node;
|
|
|
-}
|