diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-30 06:55:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-30 23:43:35 +0200 |
commit | cd4e2e4b368fd52e29817fe9447c2204b76467f9 (patch) | |
tree | 5859c3c036d4725ba377c92df3ceadd6c78ed5d4 /drivers/net/ethernet/davicom | |
parent | net: ep93xx_eth: use dev_get_platdata() (diff) | |
download | linux-cd4e2e4b368fd52e29817fe9447c2204b76467f9.tar.xz linux-cd4e2e4b368fd52e29817fe9447c2204b76467f9.zip |
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 <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/davicom')
-rw-r--r-- | drivers/net/ethernet/davicom/dm9000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c index a13b312b50f2..5f5896e522d2 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; |