summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/sfc/efx_common.c
diff options
context:
space:
mode:
authoranimeshbm2024-03-14 13:20:59 +0100
committerGitHub2024-03-14 13:20:59 +0100
commit211ac5f933e97b3accf935dd6dc92e58cc23dbb6 (patch)
treef385c42cc60bdb621bef3c4fe059f7562af0f57b /src/drivers/net/sfc/efx_common.c
parentsupport for aqc113 (diff)
parent[efi] Update to current EDK2 headers (diff)
downloadipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.tar.gz
ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.tar.xz
ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.zip
Merge branch 'ipxe:master' into aqc1xx
Diffstat (limited to 'src/drivers/net/sfc/efx_common.c')
-rw-r--r--src/drivers/net/sfc/efx_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/net/sfc/efx_common.c b/src/drivers/net/sfc/efx_common.c
index ad572b1d..2b7a88a5 100644
--- a/src/drivers/net/sfc/efx_common.c
+++ b/src/drivers/net/sfc/efx_common.c
@@ -70,7 +70,7 @@ efx_readl(struct efx_nic *efx, efx_dword_t *value, unsigned int reg)
******************************************************************************/
void efx_probe(struct net_device *netdev, enum efx_revision revision)
{
- struct efx_nic *efx = netdev_priv(netdev);
+ struct efx_nic *efx = netdev->priv;
struct pci_device *pci = container_of(netdev->dev,
struct pci_device, dev);
unsigned int reg = PCI_BASE_ADDRESS_0;
@@ -97,7 +97,7 @@ void efx_probe(struct net_device *netdev, enum efx_revision revision)
void efx_remove(struct net_device *netdev)
{
- struct efx_nic *efx = netdev_priv(netdev);
+ struct efx_nic *efx = netdev->priv;
iounmap(efx->membase);
efx->membase = NULL;