soc: imx8m: fix clock reference leak in imx8m_soc_prepare()

When clk_prepare_enable() fails, the error path does not release the
clock reference obtained by of_clk_get_by_name(). Add clk_put() to
the error path before iounmap().

Fixes: 390c01073f5d ("soc: imx8m: Cleanup with adding imx8m_soc_[un]prepare")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
1 file changed