diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-28 22:43:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-29 19:46:31 -0500 |
commit | 06629f07248b259e08a6e4089fbe6aa3f98dfbe6 (patch) | |
tree | dfe3531f34ab8496e03dba8586bd676fed0c622b /drivers/net/sfc/ethtool.c | |
parent | 0aa3fbaa3f2d29a14231ebb0c8e521c23701d41f (diff) |
sfc: Add efx_nic_type operation for identity LED control
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 29aa83c2a0d0..506397527633 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -174,14 +174,14 @@ static int efx_ethtool_phys_id(struct net_device *net_dev, u32 count) | |||
174 | struct efx_nic *efx = netdev_priv(net_dev); | 174 | struct efx_nic *efx = netdev_priv(net_dev); |
175 | 175 | ||
176 | do { | 176 | do { |
177 | falcon_board(efx)->type->set_id_led(efx, EFX_LED_ON); | 177 | efx->type->set_id_led(efx, EFX_LED_ON); |
178 | schedule_timeout_interruptible(HZ / 2); | 178 | schedule_timeout_interruptible(HZ / 2); |
179 | 179 | ||
180 | falcon_board(efx)->type->set_id_led(efx, EFX_LED_OFF); | 180 | efx->type->set_id_led(efx, EFX_LED_OFF); |
181 | schedule_timeout_interruptible(HZ / 2); | 181 | schedule_timeout_interruptible(HZ / 2); |
182 | } while (!signal_pending(current) && --count != 0); | 182 | } while (!signal_pending(current) && --count != 0); |
183 | 183 | ||
184 | falcon_board(efx)->type->set_id_led(efx, EFX_LED_DEFAULT); | 184 | efx->type->set_id_led(efx, EFX_LED_DEFAULT); |
185 | return 0; | 185 | return 0; |
186 | } | 186 | } |
187 | 187 | ||