clk: imx8mq: Unregister clks when of_clk_add_provider failed
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 6 Aug 2019 06:46:14 +0000 (14:46 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 12 Aug 2019 14:15:49 +0000 (16:15 +0200)
commite8760d8a698c3d61d6267f32acc2b845ac1de15e
treea9b48a9627a8e21cd2a7d236ac1fb9d5b7ee8263
parentef7e6a1284374f22ca7016ae3f7c3dfccf7a3de2
clk: imx8mq: 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-imx8mq.c