net: bcmgenet: Set phydev->dev_flags only for internal PHYs
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 11 Oct 2019 19:53:49 +0000 (12:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Oct 2019 17:53:19 +0000 (10:53 -0700)
commit92696286f3bb37ba50e4bd8d1beb24afb759a799
treeef74520060ee65703da16eb016e85556d53650de
parentb0818f80c8c1bc215bba276bd61c216014fab23b
net: bcmgenet: Set phydev->dev_flags only for internal PHYs

phydev->dev_flags is entirely dependent on the PHY device driver which
is going to be used, setting the internal GENET PHY revision in those
bits only makes sense when drivers/net/phy/bcm7xxx.c is the PHY driver
being used.

Fixes: 487320c54143 ("net: bcmgenet: communicate integrated PHY revision to PHY driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c