Skip to content

Commit d6c7c37

Browse files
committed
MIPS: octeon: Remove unused functions
cvmx_helper_initialize_packet_io_local() is unused and after removing it cvmx_pko_initialize_local() is also unused. Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 169dd5f commit d6c7c37

File tree

4 files changed

+0
-32
lines changed

4 files changed

+0
-32
lines changed

arch/mips/cavium-octeon/executive/cvmx-helper.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,16 +1055,6 @@ int cvmx_helper_initialize_packet_io_global(void)
10551055
}
10561056
EXPORT_SYMBOL_GPL(cvmx_helper_initialize_packet_io_global);
10571057

1058-
/**
1059-
* Does core local initialization for packet io
1060-
*
1061-
* Returns Zero on success, non-zero on failure
1062-
*/
1063-
int cvmx_helper_initialize_packet_io_local(void)
1064-
{
1065-
return cvmx_pko_initialize_local();
1066-
}
1067-
10681058
/**
10691059
* Return the link state of an IPD/PKO port as returned by
10701060
* auto negotiation. The result of this function may not match

arch/mips/cavium-octeon/executive/cvmx-pko.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,20 +229,6 @@ void cvmx_pko_initialize_global(void)
229229
}
230230
}
231231

232-
/*
233-
* This function does per-core initialization required by the PKO routines.
234-
* This must be called on all cores that will do packet output, and must
235-
* be called after the FPA has been initialized and filled with pages.
236-
*
237-
* Returns 0 on success
238-
* !0 on failure
239-
*/
240-
int cvmx_pko_initialize_local(void)
241-
{
242-
/* Nothing to do */
243-
return 0;
244-
}
245-
246232
/*
247233
* Enables the packet output hardware. It must already be
248234
* configured.

arch/mips/include/asm/octeon/cvmx-helper.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,6 @@ extern int cvmx_helper_ipd_and_packet_input_enable(void);
9393
*/
9494
extern int cvmx_helper_initialize_packet_io_global(void);
9595

96-
/**
97-
* Does core local initialization for packet io
98-
*
99-
* Returns Zero on success, non-zero on failure
100-
*/
101-
extern int cvmx_helper_initialize_packet_io_local(void);
102-
10396
/**
10497
* Returns the number of ports on the given interface.
10598
* The interface must be initialized before the port count

arch/mips/include/asm/octeon/cvmx-pko.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ typedef struct {
277277
* output system.
278278
*/
279279
extern void cvmx_pko_initialize_global(void);
280-
extern int cvmx_pko_initialize_local(void);
281280

282281
/**
283282
* Enables the packet output hardware. It must already be

0 commit comments

Comments
 (0)