]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Propagate any error return from debug_init()
authorChris Brand <chris.brand@linaro.org>
Thu, 3 Jul 2014 21:01:29 +0000 (14:01 -0700)
committerMike Turquette <mturquette@linaro.org>
Wed, 30 Jul 2014 00:13:48 +0000 (17:13 -0700)
commit0096039993225a3fe80aec1c69a054df534dfe99
tree2fb18391c00a408ba059781b5ab3c1e537640536
parentd6f4457fef81d0b8b33224d2a9af4a8331d249fa
clk: Propagate any error return from debug_init()

If the .debug_init op is provided, it will be called by
clk_debug_create_one(). If debug_init() returns an error code,
clk_debug_create_one() will return -ENOMEM, regardless of the
value returned from debug_init(). Tweak the code to return
the actual value returned by debug_init() instead.

Signed-off-by: Chris Brand <chris.brand@linaro.org>
Reviewed-by: Matt Porter <mporter@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c