drivers/net/ethernet/marvell/mvmdio.c: Fix non OF case
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Fri, 2 Aug 2019 08:32:40 +0000 (10:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Aug 2019 20:30:48 +0000 (13:30 -0700)
commitd934423ac26ed373dfe089734d505dca5ff679b6
tree135a608c53807d3461e146a27aa6969822076e27
parentcd2063604ea6a8c2683b4eb9b5f4c4da74592d87
drivers/net/ethernet/marvell/mvmdio.c: Fix non OF case

Orion5.x systems are still using machine files and not device-tree.
Commit 96cb4342382290c9 ("net: mvmdio: allow up to three clocks to be
specified for orion-mdio") has replaced devm_clk_get() with of_clk_get(),
leading to a oops at boot and not working network, as reported in
https://lists.debian.org/debian-arm/2019/07/msg00088.html and possibly in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908712.

Link: https://lists.debian.org/debian-arm/2019/07/msg00088.html
Fixes: 96cb4342382290c9 ("net: mvmdio: allow up to three clocks to be specified for orion-mdio")
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvmdio.c