clk: max77686: Fix clean-up in error and remove paths
authorTomasz Figa <t.figa@samsung.com>
Thu, 12 Dec 2013 16:07:18 +0000 (17:07 +0100)
committerMike Turquette <mturquette@linaro.org>
Wed, 8 Jan 2014 17:53:52 +0000 (09:53 -0800)
commitd73ac4ca66676d0b0d57a8828d10d479ad054d0c
treee00fc507eb388a92c1593a96b5523f5e010bdd79
parentbadbc542f970a40f4c15014501016584f783782d
clk: max77686: Fix clean-up in error and remove paths

This patch fixes invalid kfree() and adds missing call to clk_unregister()
in error and remove paths in max77686_clk_probe(). While at it, error
handling is also cleaned up.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-max77686.c