net: ethernet: gianfar_ethtool: get phc index through drvdata
authorYangbo Lu <yangbo.lu@nxp.com>
Fri, 25 May 2018 04:40:36 +0000 (12:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 03:05:11 +0000 (23:05 -0400)
commit7349a74ea75ca27606ead81df3ed67f1b32a94ba
treeaddb19736bdeabf61e4544027de3bbed98329e94
parent6c50c1ed72aeb5cd1ae8cd267d5a79904c82a04f
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>
drivers/net/ethernet/freescale/gianfar.h
drivers/net/ethernet/freescale/gianfar_ethtool.c