diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2018-05-25 12:40:36 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-28 23:05:11 -0400 |
commit | 7349a74ea75ca27606ead81df3ed67f1b32a94ba (patch) | |
tree | addb19736bdeabf61e4544027de3bbed98329e94 /drivers/net/ethernet/freescale/gianfar.h | |
parent | 6c50c1ed72aeb5cd1ae8cd267d5a79904c82a04f (diff) | |
download | linux-7349a74ea75ca27606ead81df3ed67f1b32a94ba.tar.bz2 |
net: ethernet: gianfar_ethtool: get phc index through drvdata
Global variable gfar_phc_index was used to get and store
phc index through gianfar_ptp driver. However gianfar_ptp
had been renamed as ptp_qoriq for QorIQ common PTP driver.
This gfar_phc_index doesn't work any more, and the phc index
is stored in drvdata now. This patch is to support getting
phc index through ptp_qoriq drvdata.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.h')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.h b/drivers/net/ethernet/freescale/gianfar.h index 5aa814799d70..8e42c0246611 100644 --- a/drivers/net/ethernet/freescale/gianfar.h +++ b/drivers/net/ethernet/freescale/gianfar.h @@ -1372,7 +1372,4 @@ struct filer_table { struct gfar_filer_entry fe[MAX_FILER_CACHE_IDX + 20]; }; -/* The gianfar_ptp module will set this variable */ -extern int gfar_phc_index; - #endif /* __GIANFAR_H */ |