clk: imx8mm: Unregister clks when of_clk_add_provider failed
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 6 Aug 2019 06:46:13 +0000 (14:46 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 12 Aug 2019 14:15:31 +0000 (16:15 +0200)
commitef7e6a1284374f22ca7016ae3f7c3dfccf7a3de2
treef50fa671c0ddf8f4b21c3981a64808e619cde834
parent9b9c60bed562c3718ae324a86f3f30a4ff983cf8
clk: imx8mm: Unregister clks when of_clk_add_provider failed

When of_clk_add_provider failed, all clks should be unregistered.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx8mm.c