sfc: Remove efx_nic_dummy_op_int() as redundant with efx_port_dummy_op_int()
Update comment on the dummy operation implementations. Line up the board operation initialisers. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
740847dab1
commit
01aad7b6ff
1 changed files with 6 additions and 11 deletions
|
@ -1774,7 +1774,7 @@ static struct pci_device_id efx_pci_table[] __devinitdata = {
|
||||||
*
|
*
|
||||||
* Dummy PHY/MAC/Board operations
|
* Dummy PHY/MAC/Board operations
|
||||||
*
|
*
|
||||||
* Can be used where the MAC does not implement this operation
|
* Can be used for some unimplemented operations
|
||||||
* Needed so all function pointers are valid and do not have to be tested
|
* Needed so all function pointers are valid and do not have to be tested
|
||||||
* before use
|
* before use
|
||||||
*
|
*
|
||||||
|
@ -1795,17 +1795,12 @@ static struct efx_phy_operations efx_dummy_phy_operations = {
|
||||||
.reset_xaui = efx_port_dummy_op_void,
|
.reset_xaui = efx_port_dummy_op_void,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Dummy board operations */
|
|
||||||
static int efx_nic_dummy_op_int(struct efx_nic *nic)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct efx_board efx_dummy_board_info = {
|
static struct efx_board efx_dummy_board_info = {
|
||||||
.init = efx_nic_dummy_op_int,
|
.init = efx_port_dummy_op_int,
|
||||||
.init_leds = efx_port_dummy_op_int,
|
.init_leds = efx_port_dummy_op_int,
|
||||||
.set_fault_led = efx_port_dummy_op_blink,
|
.set_fault_led = efx_port_dummy_op_blink,
|
||||||
.fini = efx_port_dummy_op_void,
|
.blink = efx_port_dummy_op_blink,
|
||||||
|
.fini = efx_port_dummy_op_void,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue