diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-30 09:08:55 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-31 01:43:39 +0400 |
commit | 9bc7b1cd5ca7a732a198282b6937013df1c6881c (patch) | |
tree | fa09cfa3b5fd07ac7c5fe538ed815b271ab24d8a | |
parent | 387d40ac69178e39dde7a08e65b9c54ff243be6d (diff) | |
download | linux-9bc7b1cd5ca7a732a198282b6937013df1c6881c.tar.xz |
net: mdio-gpio: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/phy/mdio-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c index a47f9236d966..8004acbef2c9 100644 --- a/drivers/net/phy/mdio-gpio.c +++ b/drivers/net/phy/mdio-gpio.c @@ -191,7 +191,7 @@ static int mdio_gpio_probe(struct platform_device *pdev) pdata = mdio_gpio_of_get_data(pdev); bus_id = of_alias_get_id(pdev->dev.of_node, "mdio-gpio"); } else { - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); bus_id = pdev->id; } |