diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-30 00:58:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-30 17:43:36 -0400 |
commit | 0dd14b670e873dc8c19821aca1d2a737c86c6bc7 (patch) | |
tree | 36af2eb58045ec7cb1307ec624019b2a1f3dc21e /drivers/net/ethernet/micrel/ks8842.c | |
parent | e19eac0ec5a77fd53cd909a25435f7f6ac81d622 (diff) |
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 <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8842.c')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8842.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c index 94b3bd6fb5fd..0951f7aca1ef 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) | |||
1148 | struct resource *iomem; | 1148 | struct resource *iomem; |
1149 | struct net_device *netdev; | 1149 | struct net_device *netdev; |
1150 | struct ks8842_adapter *adapter; | 1150 | struct ks8842_adapter *adapter; |
1151 | struct ks8842_platform_data *pdata = pdev->dev.platform_data; | 1151 | struct ks8842_platform_data *pdata = dev_get_platdata(&pdev->dev); |
1152 | u16 id; | 1152 | u16 id; |
1153 | unsigned i; | 1153 | unsigned i; |
1154 | 1154 | ||