net: macb: unprepare clocks in case of failure
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 9 Dec 2020 13:03:35 +0000 (15:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 00:19:21 +0000 (16:19 -0800)
commitf4de93f03ed8da5218607852566e3326d31729b0
treee7b353fab38caa5581ad18a96be5e87766cd9b82
parent38493da4e6a81ee8df6679da7d6f4bea74558636
net: macb: unprepare clocks in case of failure

Unprepare clocks in case of any failure in fu540_c000_clk_init().

Fixes: c218ad559020 ("macb: Add support for SiFive FU540-C000")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c