]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8c33fba7e223058ae808a32911e191b82683681
treeaddb19736bdeabf61e4544027de3bbed98329e94
parente3e6509fc5c3c3a6f5ce7eff4e77841c393037fa
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