diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-09-01 07:48:36 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 09:53:47 -0400 |
commit | 01aad7b6ffcc07544e7bdf472fbde4e6eb36a610 (patch) | |
tree | aa17e0be6f3cb75705d89b62c975823eef5abb3f /drivers/net/sfc | |
parent | 740847dab16b1a410a0f833df2bf21c8ed8265f3 (diff) |
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>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r-- | drivers/net/sfc/efx.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 5a0494a7d59f..c41035a99381 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -1774,7 +1774,7 @@ static struct pci_device_id efx_pci_table[] __devinitdata = { | |||
1774 | * | 1774 | * |
1775 | * Dummy PHY/MAC/Board operations | 1775 | * Dummy PHY/MAC/Board operations |
1776 | * | 1776 | * |
1777 | * Can be used where the MAC does not implement this operation | 1777 | * Can be used for some unimplemented operations |
1778 | * Needed so all function pointers are valid and do not have to be tested | 1778 | * Needed so all function pointers are valid and do not have to be tested |
1779 | * before use | 1779 | * before use |
1780 | * | 1780 | * |
@@ -1795,17 +1795,12 @@ static struct efx_phy_operations efx_dummy_phy_operations = { | |||
1795 | .reset_xaui = efx_port_dummy_op_void, | 1795 | .reset_xaui = efx_port_dummy_op_void, |
1796 | }; | 1796 | }; |
1797 | 1797 | ||
1798 | /* Dummy board operations */ | ||
1799 | static int efx_nic_dummy_op_int(struct efx_nic *nic) | ||
1800 | { | ||
1801 | return 0; | ||
1802 | } | ||
1803 | |||
1804 | static struct efx_board efx_dummy_board_info = { | 1798 | static struct efx_board efx_dummy_board_info = { |
1805 | .init = efx_nic_dummy_op_int, | 1799 | .init = efx_port_dummy_op_int, |
1806 | .init_leds = efx_port_dummy_op_int, | 1800 | .init_leds = efx_port_dummy_op_int, |
1807 | .set_fault_led = efx_port_dummy_op_blink, | 1801 | .set_fault_led = efx_port_dummy_op_blink, |
1808 | .fini = efx_port_dummy_op_void, | 1802 | .blink = efx_port_dummy_op_blink, |
1803 | .fini = efx_port_dummy_op_void, | ||
1809 | }; | 1804 | }; |
1810 | 1805 | ||
1811 | /************************************************************************** | 1806 | /************************************************************************** |