net: ethernet: ravb: Fix release of refclk
authorAdam Ford <aford173@gmail.com>
Wed, 21 Apr 2021 14:05:05 +0000 (09:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2021 18:17:09 +0000 (11:17 -0700)
commit36e69da892f1224dabc4a5d0a5948764c318b117
treea861d6f84d41cf95b12b505b54c2ac9bfc57c965
parent17cb00704c217d88a93791c914a01904e685b499
net: ethernet: ravb: Fix release of refclk

The call to clk_disable_unprepare() can happen before priv is
initialized. This means moving clk_disable_unprepare out of
out_release into a new label.

Fixes: 8ef7adc6beb2 ("net: ethernet: ravb: Enable optional refclk")
Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c