From: Jingoo Han Date: Fri, 30 Aug 2013 04:55:14 +0000 (+0900) Subject: net: dm9000: use dev_get_platdata() X-Git-Tag: v3.12-rc1~132^2~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd4e2e4b368fd52e29817fe9447c2204b76467f9;p=kernel%2Fkernel-generic.git net: dm9000: 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/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c index a13b312..5f5896e 100644 --- a/drivers/net/ethernet/davicom/dm9000.c +++ b/drivers/net/ethernet/davicom/dm9000.c @@ -1384,7 +1384,7 @@ static struct dm9000_plat_data *dm9000_parse_dt(struct device *dev) static int dm9000_probe(struct platform_device *pdev) { - struct dm9000_plat_data *pdata = pdev->dev.platform_data; + struct dm9000_plat_data *pdata = dev_get_platdata(&pdev->dev); struct board_info *db; /* Point a board information structure */ struct net_device *ndev; const unsigned char *mac_src;