phy: Move PHY PM operations into phy_device

The MDIO PM operations are really PHY device PM operations. So move
them into phy_device. This will be needed when we support devices on
the mdio bus which are not PHYs.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Andrew Lunn
2016-01-06 20:11:21 +01:00
committed by David S. Miller
parent 0071f56e46
commit bc87922ff5
3 changed files with 121 additions and 74 deletions

View File

@@ -15,7 +15,7 @@ struct mii_bus;
struct mdio_device {
struct device dev;
const struct dev_pm_ops *pm_ops;
struct mii_bus *bus;
/* Bus address of the MDIO device (0-31) */
int addr;