clk: socfpga: Fix memory leak in socfpga_gate_init()
[ Upstream commit 0b8ba891ad
]
Free @socfpga_clk and @ops on the error path to avoid memory leak issue.
Fixes: a30a67be7b
("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>