提交 17d70d6d 编写于 作者: D David S. Miller

sparc: Remove prom_pathtoinode()

Unused.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ce05a94e
...@@ -238,7 +238,6 @@ extern int prom_node_has_property(phandle node, char *property); ...@@ -238,7 +238,6 @@ extern int prom_node_has_property(phandle node, char *property);
extern int prom_setprop(phandle node, const char *prop_name, char *prop_value, extern int prom_setprop(phandle node, const char *prop_name, char *prop_value,
int value_size); int value_size);
extern phandle prom_pathtoinode(char *path);
extern phandle prom_inst2pkg(int); extern phandle prom_inst2pkg(int);
/* Dorking with Bus ranges... */ /* Dorking with Bus ranges... */
......
...@@ -279,7 +279,6 @@ extern phandle prom_finddevice(const char *name); ...@@ -279,7 +279,6 @@ extern phandle prom_finddevice(const char *name);
extern int prom_setprop(phandle node, const char *prop_name, char *prop_value, extern int prom_setprop(phandle node, const char *prop_name, char *prop_value,
int value_size); int value_size);
extern phandle prom_pathtoinode(const char *path);
extern phandle prom_inst2pkg(int); extern phandle prom_inst2pkg(int);
extern int prom_service_exists(const char *service_name); extern int prom_service_exists(const char *service_name);
extern void prom_sun4v_guest_soft_state(void); extern void prom_sun4v_guest_soft_state(void);
......
...@@ -342,19 +342,3 @@ phandle prom_inst2pkg(int inst) ...@@ -342,19 +342,3 @@ phandle prom_inst2pkg(int inst)
if (node == -1) return 0; if (node == -1) return 0;
return node; 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;
}
...@@ -374,24 +374,6 @@ inline phandle prom_inst2pkg(int inst) ...@@ -374,24 +374,6 @@ inline phandle prom_inst2pkg(int inst)
return node; return node;
} }
/* Return 'node' assigned to a particular prom 'path'
* FIXME: Should work for v0 as well
*/
phandle prom_pathtoinode(const char *path)
{
phandle node;
int inst;
inst = prom_devopen (path);
if (inst == 0)
return 0;
node = prom_inst2pkg(inst);
prom_devclose(inst);
if (node == -1)
return 0;
return node;
}
int prom_ihandle2path(int handle, char *buffer, int bufsize) int prom_ihandle2path(int handle, char *buffer, int bufsize)
{ {
unsigned long args[7]; unsigned long args[7];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册