clk: socfpga: Fix memory leak in socfpga_gate_init()
[ Upstream commit
390784ded6c3ff72061afe3e9a7e967994968f97 ]
Free @socfpga_clk and @ops on the error path to avoid memory leak issue.
Fixes: 4bbbff99cb26 ("clk: socfpga: Don't have get_parent for single parent ops")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20221123031622.63171-1-xiujianfeng@huawei.com
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>