diff options
author | Philippe Reynes <tremyfr@gmail.com> | 2016-07-14 23:44:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-15 16:41:34 -0700 |
commit | 80721e7fa68f914a21b2685a01399b3aa80ac116 (patch) | |
tree | 3af84b8e71392ecff15d71e33f486cc75ee8bd59 /drivers/net/ethernet/pasemi/pasemi_mac.h | |
parent | 6e3848404d418f4200790c3bdbab05e58de7976b (diff) | |
download | lwn-80721e7fa68f914a21b2685a01399b3aa80ac116.tar.gz lwn-80721e7fa68f914a21b2685a01399b3aa80ac116.zip |
net: ethernet: pasemi_mac: use phydev from struct net_device
The private structure contain a pointer to phydev, but the structure
net_device already contain such pointer. So we can remove the pointer
phy in the private structure, and update the driver to use the
one contained in struct net_device.
Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pasemi/pasemi_mac.h')
-rw-r--r-- | drivers/net/ethernet/pasemi/pasemi_mac.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/pasemi/pasemi_mac.h b/drivers/net/ethernet/pasemi/pasemi_mac.h index 161c99a98403..7c47e263b8c1 100644 --- a/drivers/net/ethernet/pasemi/pasemi_mac.h +++ b/drivers/net/ethernet/pasemi/pasemi_mac.h @@ -70,7 +70,6 @@ struct pasemi_mac { struct pci_dev *pdev; struct pci_dev *dma_pdev; struct pci_dev *iob_pdev; - struct phy_device *phydev; struct napi_struct napi; int bufsz; /* RX ring buffer size */ |