diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-23 11:05:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-24 13:58:42 -0500 |
commit | 278c0621fbc4ef52177969edb6f07352da816fdb (patch) | |
tree | 1af11fc3f69948a0687df279255c754f5671bd99 /drivers/net/sfc/ethtool.c | |
parent | 981fc1b4b8cc6bfe8c6f0c07052e25738d959c68 (diff) |
sfc: Make board information explicitly Falcon-specific
Rename struct efx_board to struct falcon_board.
Introduce and use inline function to look up board info from struct
efx_nic, in preparation for moving it.
Move board init and fini calls into NIC probe and remove functions.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
-rw-r--r-- | drivers/net/sfc/ethtool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index 18e02712818c..bb415326c739 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -188,14 +188,14 @@ static int efx_ethtool_phys_id(struct net_device *net_dev, u32 count) | |||
188 | struct efx_nic *efx = netdev_priv(net_dev); | 188 | struct efx_nic *efx = netdev_priv(net_dev); |
189 | 189 | ||
190 | do { | 190 | do { |
191 | efx->board_info.set_id_led(efx, EFX_LED_ON); | 191 | falcon_board(efx)->set_id_led(efx, EFX_LED_ON); |
192 | schedule_timeout_interruptible(HZ / 2); | 192 | schedule_timeout_interruptible(HZ / 2); |
193 | 193 | ||
194 | efx->board_info.set_id_led(efx, EFX_LED_OFF); | 194 | falcon_board(efx)->set_id_led(efx, EFX_LED_OFF); |
195 | schedule_timeout_interruptible(HZ / 2); | 195 | schedule_timeout_interruptible(HZ / 2); |
196 | } while (!signal_pending(current) && --count != 0); | 196 | } while (!signal_pending(current) && --count != 0); |
197 | 197 | ||
198 | efx->board_info.set_id_led(efx, EFX_LED_DEFAULT); | 198 | falcon_board(efx)->set_id_led(efx, EFX_LED_DEFAULT); |
199 | return 0; | 199 | return 0; |
200 | } | 200 | } |
201 | 201 | ||