mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
phy: Add an mdio_device structure
Not all devices attached to an MDIO bus are phys. So add an mdio_device structure to represent the generic parts of an mdio device, and place this structure into the phy_device. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e7f4dc3536
commit
e5a03bfd87
35 changed files with 165 additions and 151 deletions
|
@ -68,7 +68,7 @@ int lan88xx_suspend(struct phy_device *phydev)
|
|||
|
||||
static int lan88xx_probe(struct phy_device *phydev)
|
||||
{
|
||||
struct device *dev = &phydev->dev;
|
||||
struct device *dev = &phydev->mdio.dev;
|
||||
struct lan88xx_priv *priv;
|
||||
|
||||
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
|
||||
|
@ -89,7 +89,7 @@ static int lan88xx_probe(struct phy_device *phydev)
|
|||
|
||||
static void lan88xx_remove(struct phy_device *phydev)
|
||||
{
|
||||
struct device *dev = &phydev->dev;
|
||||
struct device *dev = &phydev->mdio.dev;
|
||||
struct lan88xx_priv *priv = phydev->priv;
|
||||
|
||||
if (priv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue