From: Jingoo Han Date: Fri, 30 Aug 2013 04:58:30 +0000 (+0900) Subject: net: ks8842: use dev_get_platdata() X-Git-Tag: v3.12-rc1~132^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dd14b670e873dc8c19821aca1d2a737c86c6bc7;p=kernel%2Fkernel-generic.git net: ks8842: 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c index 94b3bd6..0951f7a 100644 --- a/drivers/net/ethernet/micrel/ks8842.c +++ b/drivers/net/ethernet/micrel/ks8842.c @@ -1148,7 +1148,7 @@ static int ks8842_probe(struct platform_device *pdev) struct resource *iomem; struct net_device *netdev; struct ks8842_adapter *adapter; - struct ks8842_platform_data *pdata = pdev->dev.platform_data; + struct ks8842_platform_data *pdata = dev_get_platdata(&pdev->dev); u16 id; unsigned i;