提交 a17102b1 编写于 作者: B Ben Hutchings 提交者: David S. Miller

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: NBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 702c7904
...@@ -1743,6 +1743,7 @@ static struct efx_board efx_dummy_board_info = { ...@@ -1743,6 +1743,7 @@ static struct efx_board efx_dummy_board_info = {
.init = efx_port_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,
.monitor = efx_port_dummy_op_int,
.blink = efx_port_dummy_op_blink, .blink = efx_port_dummy_op_blink,
.fini = efx_port_dummy_op_void, .fini = efx_port_dummy_op_void,
}; };
...@@ -1983,6 +1984,7 @@ static int efx_pci_probe_main(struct efx_nic *efx) ...@@ -1983,6 +1984,7 @@ static int efx_pci_probe_main(struct efx_nic *efx)
efx_fini_port(efx); efx_fini_port(efx);
fail5: fail5:
fail4: fail4:
efx->board_info.fini(efx);
fail3: fail3:
efx_fini_napi(efx); efx_fini_napi(efx);
fail2: fail2:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册