diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-06-07 14:48:00 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-08 01:41:07 +0400 |
commit | ca162a82f56921442f5db72a3a472010e5a62c4b (patch) | |
tree | 292a2e4cf3eed58f61e8557a2069f987594e4dd5 /drivers/net/ethernet/freescale/fec_ptp.c | |
parent | 28850dc7c71da9d0c0e39246e9ff6913f41f8d0a (diff) | |
download | linux-ca162a82f56921442f5db72a3a472010e5a62c4b.tar.xz |
fec: Only pass pdev in fec_ptp_init()
Passing pdev in fec_ptp_init() is enough, since we can get ndev locally.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec_ptp.c')
-rw-r--r-- | drivers/net/ethernet/freescale/fec_ptp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c index 25fc960cbf0e..5007e4f9fff9 100644 --- a/drivers/net/ethernet/freescale/fec_ptp.c +++ b/drivers/net/ethernet/freescale/fec_ptp.c @@ -347,8 +347,9 @@ static void fec_time_keep(unsigned long _data) * cyclecounter init routine and exits. */ -void fec_ptp_init(struct net_device *ndev, struct platform_device *pdev) +void fec_ptp_init(struct platform_device *pdev) { + struct net_device *ndev = platform_get_drvdata(pdev); struct fec_enet_private *fep = netdev_priv(ndev); fep->ptp_caps.owner = THIS_MODULE; |