drivers: clk: sunxi: Fix memory leakage in clk-sunxi.c
authorVictor N. Ramos Mello <victornrm@gmail.com>
Fri, 18 Oct 2013 23:27:51 +0000 (20:27 -0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 10 Nov 2013 10:40:51 +0000 (11:40 +0100)
commite71c69fc3362b88b09194d486dda6d721a8004f6
tree8a58c691ed3fdbfb1643171bd5468dbe6fec5dae
parent8e6a4c40bb6f3866548811f9f3882a627293fc2f
drivers: clk: sunxi: Fix memory leakage in clk-sunxi.c

Fix a possible memory leak in sun4i_osc_clk_setup().
Moved clock-frequency check to save superfluous allocation.

Signed-off-by: Victor N. Ramos Mello <victornrm@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-sunxi.c