Skip to content

Commit b565a8c

Browse files
Dr. David Alan Gilbertkuba-moo
Dr. David Alan Gilbert
authored andcommitted
cavium/liquidio: Remove unused lio_get_device_id
lio_get_device_id() has been unused since 2018's commit 64fecd3 ("liquidio: remove obsolete functions and data structures") Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250203183343.193691-1-linux@treblig.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 626b367 commit b565a8c

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

drivers/net/ethernet/cavium/liquidio/octeon_device.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,22 +1433,6 @@ int octeon_wait_for_ddr_init(struct octeon_device *oct, u32 *timeout)
14331433
}
14341434
EXPORT_SYMBOL_GPL(octeon_wait_for_ddr_init);
14351435

1436-
/* Get the octeon id assigned to the octeon device passed as argument.
1437-
* This function is exported to other modules.
1438-
* @param dev - octeon device pointer passed as a void *.
1439-
* @return octeon device id
1440-
*/
1441-
int lio_get_device_id(void *dev)
1442-
{
1443-
struct octeon_device *octeon_dev = (struct octeon_device *)dev;
1444-
u32 i;
1445-
1446-
for (i = 0; i < MAX_OCTEON_DEVICES; i++)
1447-
if (octeon_device[i] == octeon_dev)
1448-
return octeon_dev->octeon_id;
1449-
return -1;
1450-
}
1451-
14521436
void lio_enable_irq(struct octeon_droq *droq, struct octeon_instr_queue *iq)
14531437
{
14541438
u64 instr_cnt;

drivers/net/ethernet/cavium/liquidio/octeon_device.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -705,13 +705,6 @@ octeon_get_dispatch(struct octeon_device *octeon_dev, u16 opcode,
705705
*/
706706
struct octeon_device *lio_get_device(u32 octeon_id);
707707

708-
/** Get the octeon id assigned to the octeon device passed as argument.
709-
* This function is exported to other modules.
710-
* @param dev - octeon device pointer passed as a void *.
711-
* @return octeon device id
712-
*/
713-
int lio_get_device_id(void *dev);
714-
715708
/** Read windowed register.
716709
* @param oct - pointer to the Octeon device.
717710
* @param addr - Address of the register to read.

0 commit comments

Comments
 (0)