net/phy/cortina.c: Update get_phy_id implementation
authorPriyanka Jain <priyanka.jain@nxp.com>
Tue, 30 Jan 2018 06:08:38 +0000 (11:38 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 22 Mar 2018 20:05:31 +0000 (15:05 -0500)
commitaf5484acb0e8e4b6d0d977f84d8dde7b537c441d
tree7eb98f5528f6d8fdab26db011cb78461456ec90a
parenta802d1e2684a30d01bde657ebf55c2b5eca1d712
net/phy/cortina.c: Update get_phy_id implementation

Update get_phy_id() implementation in cortina.c to check
for Cortina_phy by comparing device phy_id with cortina phy_id
instead of relying on presence of CORTINA macros.

This will allow get_phy_id to work with non-cortina phy devices
which might have same phy address as Cortina device but on
different  bus.

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/cortina.c