aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-12-13 00:28:20 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-13 00:28:20 -0500
commita17102b1ba847ca31d9151b877fbf9a38a39a8bb (patch)
tree1e936e936afece841036b8acfaec30672eec9979 /drivers/net/sfc
parent702c7904a29629e4e6b18d5497abe84bd20c0449 (diff)
sfc: Board support fixes
Set dummy monitor method for unrecognised boards. Clean up board resources if efx_pci_probe_main() fails after board has been initialised. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/efx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index e5024bb8a46e..bbc84026dd86 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1743,6 +1743,7 @@ static struct efx_board efx_dummy_board_info = {
1743 .init = efx_port_dummy_op_int, 1743 .init = efx_port_dummy_op_int,
1744 .init_leds = efx_port_dummy_op_int, 1744 .init_leds = efx_port_dummy_op_int,
1745 .set_fault_led = efx_port_dummy_op_blink, 1745 .set_fault_led = efx_port_dummy_op_blink,
1746 .monitor = efx_port_dummy_op_int,
1746 .blink = efx_port_dummy_op_blink, 1747 .blink = efx_port_dummy_op_blink,
1747 .fini = efx_port_dummy_op_void, 1748 .fini = efx_port_dummy_op_void,
1748}; 1749};
@@ -1983,6 +1984,7 @@ static int efx_pci_probe_main(struct efx_nic *efx)
1983 efx_fini_port(efx); 1984 efx_fini_port(efx);
1984 fail5: 1985 fail5:
1985 fail4: 1986 fail4:
1987 efx->board_info.fini(efx);
1986 fail3: 1988 fail3:
1987 efx_fini_napi(efx); 1989 efx_fini_napi(efx);
1988 fail2: 1990 fail2: