diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-30 08:58:30 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-31 01:43:36 +0400 |
commit | 0dd14b670e873dc8c19821aca1d2a737c86c6bc7 (patch) | |
tree | 36af2eb58045ec7cb1307ec624019b2a1f3dc21e /drivers/net/ethernet/micrel | |
parent | e19eac0ec5a77fd53cd909a25435f7f6ac81d622 (diff) | |
download | linux-0dd14b670e873dc8c19821aca1d2a737c86c6bc7.tar.xz |
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')
-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) 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; |