aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
-rw-r--r--drivers/net/sfc/ethtool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c
index 4fe874052e3e..08a9db993743 100644
--- a/drivers/net/sfc/ethtool.c
+++ b/drivers/net/sfc/ethtool.c
@@ -567,7 +567,8 @@ static int efx_ethtool_get_eeprom(struct net_device *net_dev,
567 rc = mutex_lock_interruptible(&efx->spi_lock); 567 rc = mutex_lock_interruptible(&efx->spi_lock);
568 if (rc) 568 if (rc)
569 return rc; 569 return rc;
570 rc = falcon_spi_read(spi, eeprom->offset + EFX_EEPROM_BOOTCONFIG_START, 570 rc = falcon_spi_read(efx, spi,
571 eeprom->offset + EFX_EEPROM_BOOTCONFIG_START,
571 eeprom->len, &len, buf); 572 eeprom->len, &len, buf);
572 mutex_unlock(&efx->spi_lock); 573 mutex_unlock(&efx->spi_lock);
573 574
@@ -590,7 +591,8 @@ static int efx_ethtool_set_eeprom(struct net_device *net_dev,
590 rc = mutex_lock_interruptible(&efx->spi_lock); 591 rc = mutex_lock_interruptible(&efx->spi_lock);
591 if (rc) 592 if (rc)
592 return rc; 593 return rc;
593 rc = falcon_spi_write(spi, eeprom->offset + EFX_EEPROM_BOOTCONFIG_START, 594 rc = falcon_spi_write(efx, spi,
595 eeprom->offset + EFX_EEPROM_BOOTCONFIG_START,
594 eeprom->len, &len, buf); 596 eeprom->len, &len, buf);
595 mutex_unlock(&efx->spi_lock); 597 mutex_unlock(&efx->spi_lock);
596 598