]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: sunxi: improve divider_clk error handling and reporting
authorAndre Przywara <andre.przywara@arm.com>
Tue, 16 Feb 2016 10:46:07 +0000 (10:46 +0000)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 22 Feb 2016 03:44:38 +0000 (19:44 -0800)
commitb26803ebfba8d81e2e8fb392c1248df2ebd1ba83
tree426d3015823bb16f790aa6e94fc08a0914480de2
parent72360b91164aa35753942e5310ae1e1d16e28611
clk: sunxi: improve divider_clk error handling and reporting

We now report a failing ioremap, failing output names parsing,
failures in table registration and in the final step.
Also there was a bug where clk_register_divider_table() would return
an ERR_PTR value instead of NULL, which we were checking for.
We now implement proper rollback in case of an error.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-sunxi.c