diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-30 14:00:45 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-30 17:43:37 -0400 |
commit | d776542853a1418457e3fe09b2f1f2955065b375 (patch) | |
tree | cf1545ca2a89be8b97bdbf8d37f65672bee9337d /drivers | |
parent | 0b76b86235296efeabe49f79a3e70336cff9664e (diff) | |
download | linux-d776542853a1418457e3fe09b2f1f2955065b375.tar.bz2 |
net: seeq: 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')
-rw-r--r-- | drivers/net/ethernet/seeq/sgiseeq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/seeq/sgiseeq.c b/drivers/net/ethernet/seeq/sgiseeq.c index 856e523ac936..c76571886011 100644 --- a/drivers/net/ethernet/seeq/sgiseeq.c +++ b/drivers/net/ethernet/seeq/sgiseeq.c @@ -721,7 +721,7 @@ static const struct net_device_ops sgiseeq_netdev_ops = { static int sgiseeq_probe(struct platform_device *pdev) { - struct sgiseeq_platform_data *pd = pdev->dev.platform_data; + struct sgiseeq_platform_data *pd = dev_get_platdata(&pdev->dev); struct hpc3_regs *hpcregs = pd->hpc; struct sgiseeq_init_block *sr; unsigned int irq = pd->irq; |