]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sfc: Board support fixes
authorBen Hutchings <bhutchings@solarflare.com>
Sat, 13 Dec 2008 05:28:20 +0000 (21:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Dec 2008 05:28:20 +0000 (21:28 -0800)
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>
drivers/net/sfc/efx.c

index e5024bb8a46e1bb56389cb8bb6780d163f2beb3d..bbc84026dd86c1488de6312bdcfa07f7d289ebbe 100644 (file)
@@ -1743,6 +1743,7 @@ static struct efx_board efx_dummy_board_info = {
        .init           = efx_port_dummy_op_int,
        .init_leds      = efx_port_dummy_op_int,
        .set_fault_led  = efx_port_dummy_op_blink,
+       .monitor        = efx_port_dummy_op_int,
        .blink          = efx_port_dummy_op_blink,
        .fini           = efx_port_dummy_op_void,
 };
@@ -1983,6 +1984,7 @@ static int efx_pci_probe_main(struct efx_nic *efx)
        efx_fini_port(efx);
  fail5:
  fail4:
+       efx->board_info.fini(efx);
  fail3:
        efx_fini_napi(efx);
  fail2: