net: bcmgenet: refactor phy mode configuration
authorJeremy Linton <jeremy.linton@arm.com>
Mon, 24 Feb 2020 22:53:59 +0000 (16:53 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 23:31:23 +0000 (15:31 -0800)
commit480ded2652054321d048fb6a3d90af95dc449e42
tree5eba315d830f19e96265b4b9164695532c117506
parentce69e2162f158d9d4a0e513971d02dabc7d14cb7
net: bcmgenet: refactor phy mode configuration

The DT phy mode is similar to what we want for ACPI
lets factor it out of the of path, and change the
of_ call to device_.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c