]> git.baikalelectronics.ru Git - kernel.git/commit
clk: core: copy parent_names & return error codes
authorMike Turquette <mturquette@linaro.org>
Thu, 29 Mar 2012 21:30:40 +0000 (14:30 -0700)
committerMike Turquette <mturquette@linaro.org>
Tue, 24 Apr 2012 23:37:39 +0000 (16:37 -0700)
commit33783cba43d65907cbafa83a6b2b641c0bd1c5e6
treebcb0d5f659a762764b75720fdada09ac9c548886
parentab8776db810c1e86d96e4c417b5cc9f89df93a87
clk: core: copy parent_names & return error codes

This patch cleans up clk_register and solves a few bugs by teaching
clk_register and __clk_init to return error codes (instead of just NULL)
to better align with the existing clk.h api.

Along with that change this patch also introduces a new behavior whereby
clk_register copies the parent_names array, thus allowing platforms to
declare their parent_names arrays as __initdata.

Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c
include/linux/clk-private.h
include/linux/clk-provider.h