clk: qoriq: fix memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 23 Nov 2015 10:06:50 +0000 (15:36 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 30 Nov 2015 21:00:54 +0000 (13:00 -0800)
commit279104e3ade92b38198fdaead9e84bd80057693a
tree9abfbbc1e62f217ed17f0b8d9e441400c390f140
parent0d2681e1f19162e5975b70edd0c2d1d256f38023
clk: qoriq: fix memory leak

If get_pll_div() fails we exited by returning NULL but we missed
releasing hwc.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Fixes: 0dfc86b3173f ("clk: qoriq: Move chip-specific knowledge into driver")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-qoriq.c