linux-stable/drivers/clk/st
Stephen Boyd 86665d2897 clk: st: Fix error paths and allocation style
The error paths in this file leak memory and mappings and test
for pointers being valid after dereferencing them. Fix these
problems and properly free resources on errors. Fix some
stylistic things too like using sizeof(*ptr) and fitting more
code on a single line. Note that we don't unregister clocks here.
That needs a clk_composite_unregister() API that we don't have
right now.

Acked-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Cc: Pankaj Dev <pankaj.dev@st.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2015-07-13 17:12:31 -07:00
..
clk-flexgen.c drivers: clk: st: Add CLK_GET_RATE_NOCACHE flag to clocks 2015-07-06 12:25:40 -07:00
clkgen-fsyn.c drivers: clk: st: Incorrect register offset used for lock_status 2015-07-07 16:05:08 -07:00
clkgen-mux.c clk: st: Fix error paths and allocation style 2015-07-13 17:12:31 -07:00
clkgen-pll.c drivers: clk: st: Add CLK_GET_RATE_NOCACHE flag to clocks 2015-07-06 12:25:40 -07:00
clkgen.h clk: st: Support for PLLs inside ClockGenA(s) 2014-03-25 15:58:56 -07:00
Makefile clk: st: STiH407: Support for Flexgen Clocks 2014-07-28 22:36:24 -07:00