Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
17d70d6d
Commit
17d70d6d
authored
Nov 16, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc: Remove prom_pathtoinode()
Unused. Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
ce05a94e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
36 deletions
+0
-36
arch/sparc/include/asm/oplib_32.h
arch/sparc/include/asm/oplib_32.h
+0
-1
arch/sparc/include/asm/oplib_64.h
arch/sparc/include/asm/oplib_64.h
+0
-1
arch/sparc/prom/tree_32.c
arch/sparc/prom/tree_32.c
+0
-16
arch/sparc/prom/tree_64.c
arch/sparc/prom/tree_64.c
+0
-18
No files found.
arch/sparc/include/asm/oplib_32.h
View file @
17d70d6d
...
...
@@ -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
,
int
value_size
);
extern
phandle
prom_pathtoinode
(
char
*
path
);
extern
phandle
prom_inst2pkg
(
int
);
/* Dorking with Bus ranges... */
...
...
arch/sparc/include/asm/oplib_64.h
View file @
17d70d6d
...
...
@@ -279,7 +279,6 @@ extern phandle prom_finddevice(const char *name);
extern
int
prom_setprop
(
phandle
node
,
const
char
*
prop_name
,
char
*
prop_value
,
int
value_size
);
extern
phandle
prom_pathtoinode
(
const
char
*
path
);
extern
phandle
prom_inst2pkg
(
int
);
extern
int
prom_service_exists
(
const
char
*
service_name
);
extern
void
prom_sun4v_guest_soft_state
(
void
);
...
...
arch/sparc/prom/tree_32.c
View file @
17d70d6d
...
...
@@ -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
;
}
arch/sparc/prom/tree_64.c
View file @
17d70d6d
...
...
@@ -374,24 +374,6 @@ inline phandle prom_inst2pkg(int inst)
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
)
{
unsigned
long
args
[
7
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment