]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: freescale: ucc_geth: Use netdev->phydev to access the PHY
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 3 Dec 2024 12:43:14 +0000 (13:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2024 13:41:52 +0000 (13:41 +0000)
commit43068024cc2a2abdf39c73d3c1ed63a77207ae31
tree770390657019d050d3f182b2798cf5ea3044c297
parent1e59fd163100c2e21a65004c96f81b458e86b457
net: freescale: ucc_geth: Use netdev->phydev to access the PHY

As this driver pre-dates phylib, it uses a private pointer to get a
reference to the attached phy_device. Drop that pointer and use the
netdev's pointer instead.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.c
drivers/net/ethernet/freescale/ucc_geth.h
drivers/net/ethernet/freescale/ucc_geth_ethtool.c