sfc: Clean up struct falcon_board and struct falcon_board_data

Put all static information in struct falcon_board_type and replace it
with a pointer in struct falcon_board.  Simplify probing aocordingly.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ben Hutchings 2009-11-25 16:09:41 +00:00 committed by David S. Miller
parent 734a350a6c
commit 44838a447d
7 changed files with 85 additions and 80 deletions

View file

@ -174,14 +174,14 @@ static int efx_ethtool_phys_id(struct net_device *net_dev, u32 count)
struct efx_nic *efx = netdev_priv(net_dev);
do {
falcon_board(efx)->set_id_led(efx, EFX_LED_ON);
falcon_board(efx)->type->set_id_led(efx, EFX_LED_ON);
schedule_timeout_interruptible(HZ / 2);
falcon_board(efx)->set_id_led(efx, EFX_LED_OFF);
falcon_board(efx)->type->set_id_led(efx, EFX_LED_OFF);
schedule_timeout_interruptible(HZ / 2);
} while (!signal_pending(current) && --count != 0);
falcon_board(efx)->set_id_led(efx, EFX_LED_DEFAULT);
falcon_board(efx)->type->set_id_led(efx, EFX_LED_DEFAULT);
return 0;
}