Skip to content

Commit

Permalink
net: mdio-octeon: use platform_{get,set}_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and David S. Miller committed Sep 4, 2013
1 parent e04e37a commit 2c0c4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/mdio-octeon.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static int octeon_mdiobus_remove(struct platform_device *pdev)
struct octeon_mdiobus *bus;
union cvmx_smix_en smi_en;

bus = dev_get_drvdata(&pdev->dev);
bus = platform_get_drvdata(pdev);

mdiobus_unregister(bus->mii_bus);
mdiobus_free(bus->mii_bus);
Expand Down

0 comments on commit 2c0c4fb

Please sign in to comment.