Skip to content

Commit

Permalink
sparc: Kill exports of prom internal functions
Browse files Browse the repository at this point in the history
__prom_getchild() and __prom_getsibling() are not used anywhere, so
don't export them.

Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Julian Calaby authored and David S. Miller committed Jan 9, 2009
1 parent 917c366 commit bc83597
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
11 changes: 0 additions & 11 deletions arch/sparc/include/asm/oplib_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,6 @@ extern void prom_putsegment(int context, unsigned long virt_addr,

/* PROM device tree traversal functions... */

#ifdef PROMLIB_INTERNAL

/* Internal version of prom_getchild. */
extern int __prom_getchild(int parent_node);

/* Internal version of prom_getsibling. */
extern int __prom_getsibling(int node);

#endif


/* Get the child node of the given node, or zero if no child exists. */
extern int prom_getchild(int parent_node);

Expand Down
10 changes: 0 additions & 10 deletions arch/sparc/include/asm/oplib_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,6 @@ extern void prom_unmap(unsigned long size, unsigned long vaddr);

/* PROM device tree traversal functions... */

#ifdef PROMLIB_INTERNAL

/* Internal version of prom_getchild. */
extern int __prom_getchild(int parent_node);

/* Internal version of prom_getsibling. */
extern int __prom_getsibling(int node);

#endif

/* Get the child node of the given node, or zero if no child exists. */
extern int prom_getchild(int parent_node);

Expand Down
2 changes: 0 additions & 2 deletions arch/sparc/prom/tree_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ int __prom_getchild(int node)

return cnode;
}
EXPORT_SYMBOL(__prom_getchild);

/* Return the child of node 'node' or zero if no this node has no
* direct descendent.
Expand Down Expand Up @@ -67,7 +66,6 @@ int __prom_getsibling(int node)

return cnode;
}
EXPORT_SYMBOL(__prom_getsibling);

/* Return the next sibling of node 'node' or zero if no more siblings
* at this level of depth in the tree.
Expand Down
2 changes: 0 additions & 2 deletions arch/sparc/prom/tree_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ inline int __prom_getchild(int node)
{
return p1275_cmd ("child", P1275_INOUT(1, 1), node);
}
EXPORT_SYMBOL(__prom_getchild);

inline int prom_getchild(int node)
{
Expand Down Expand Up @@ -53,7 +52,6 @@ inline int __prom_getsibling(int node)
{
return p1275_cmd(prom_peer_name, P1275_INOUT(1, 1), node);
}
EXPORT_SYMBOL(__prom_getsibling);

inline int prom_getsibling(int node)
{
Expand Down

0 comments on commit bc83597

Please sign in to comment.