Dan Carpenter 4d3d3a1b24 stmmac: dwmac-mediatek: fix resource leak in probe
If mediatek_dwmac_clks_config() fails, then call stmmac_remove_config_dt()
before returning.  Otherwise it is a resource leak.

Fixes: fa4b3ca60e80 ("stmmac: dwmac-mediatek: fix clock issue")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YuJ4aZyMUlG6yGGa@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-07-28 10:43:04 -07:00
..
2022-05-02 13:57:56 -07:00
2022-05-06 12:07:56 +01:00
2022-07-19 17:10:56 -07:00
2022-05-20 17:38:27 -07:00
2022-05-11 13:09:59 +01:00
2022-06-30 11:34:10 -07:00
2022-06-17 11:38:09 +01:00