diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-02 04:10:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-03 22:38:46 -0400 |
commit | 2c0c4fbe55ec6f798ce7289f10ff190ccadeb258 (patch) | |
tree | d15f97c10c605d064eaef5edbd146bd23dd5ac37 /drivers/net/phy | |
parent | e04e37a88dcd674df131582b84ab2dc488397d53 (diff) |
net: mdio-octeon: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data
using platform_device instead of using dev_{get,set}_drvdata()
with &pdev->dev, so we can directly pass a struct platform_device.
This is a purely cosmetic change.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/mdio-octeon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-octeon.c b/drivers/net/phy/mdio-octeon.c index 7f18f80e87c9..6aee02ed97ac 100644 --- a/drivers/net/phy/mdio-octeon.c +++ b/drivers/net/phy/mdio-octeon.c | |||
@@ -244,7 +244,7 @@ static int octeon_mdiobus_remove(struct platform_device *pdev) | |||
244 | struct octeon_mdiobus *bus; | 244 | struct octeon_mdiobus *bus; |
245 | union cvmx_smix_en smi_en; | 245 | union cvmx_smix_en smi_en; |
246 | 246 | ||
247 | bus = dev_get_drvdata(&pdev->dev); | 247 | bus = platform_get_drvdata(pdev); |
248 | 248 | ||
249 | mdiobus_unregister(bus->mii_bus); | 249 | mdiobus_unregister(bus->mii_bus); |
250 | mdiobus_free(bus->mii_bus); | 250 | mdiobus_free(bus->mii_bus); |