diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-30 01:08:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-30 17:43:39 -0400 |
commit | 9bc7b1cd5ca7a732a198282b6937013df1c6881c (patch) | |
tree | fa09cfa3b5fd07ac7c5fe538ed815b271ab24d8a | |
parent | 387d40ac69178e39dde7a08e65b9c54ff243be6d (diff) |
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) | |||
191 | pdata = mdio_gpio_of_get_data(pdev); | 191 | pdata = mdio_gpio_of_get_data(pdev); |
192 | bus_id = of_alias_get_id(pdev->dev.of_node, "mdio-gpio"); | 192 | bus_id = of_alias_get_id(pdev->dev.of_node, "mdio-gpio"); |
193 | } else { | 193 | } else { |
194 | pdata = pdev->dev.platform_data; | 194 | pdata = dev_get_platdata(&pdev->dev); |
195 | bus_id = pdev->id; | 195 | bus_id = pdev->id; |
196 | } | 196 | } |
197 | 197 | ||