Commit 9bc7b1cd5ca7a732a198282b6937013df1c6881c

Authored by Jingoo Han
Committed by David S. Miller
1 parent 387d40ac69

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/net/phy/mdio-gpio.c
... ... @@ -191,7 +191,7 @@
191 191 pdata = mdio_gpio_of_get_data(pdev);
192 192 bus_id = of_alias_get_id(pdev->dev.of_node, "mdio-gpio");
193 193 } else {
194   - pdata = pdev->dev.platform_data;
  194 + pdata = dev_get_platdata(&pdev->dev);
195 195 bus_id = pdev->id;
196 196 }
197 197