net: phy: ti: Fix dp83867 RGMII_TXID interface path
authorPhil Edworthy <PHIL.EDWORTHY@renesas.com>
Fri, 9 Dec 2016 10:46:02 +0000 (10:46 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 7 Feb 2017 16:54:33 +0000 (10:54 -0600)
commit8abdeadc5c48e79d0ff37cf2215654a7e6866704
treed03b3557e5523a904dc11703a1b7f3fc372e9673
parentc25f01a63ac21ddfa522d972b09a0e9e5ab4b4cd
net: phy: ti: Fix dp83867 RGMII_TXID interface path

There is code that is specifically for RGMII_TXID interface, but this
will never get used because the code checks that the RGMII interface
is RGMII_ID to RGMII_RXID; RGMII_TXID is after this.

To fix this and avoid similar problems in the future, use the
phy_interface_is_rgmii helper function.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/ti.c