clk: abstract parent cache
authorJames Hogan <james.hogan@imgtec.com>
Mon, 29 Jul 2013 11:24:58 +0000 (12:24 +0100)
committerMike Turquette <mturquette@linaro.org>
Mon, 19 Aug 2013 19:27:15 +0000 (12:27 -0700)
commit7ef3dcc8145263cb5a8c7059f82d44c948eb46a8
treecccb8923cc346c372cb2e7f077b141c11f7e5cac
parent5cfe10bb00e1b8c0aaa3f0c796c643bb1af6db82
clk: abstract parent cache

Abstract access to the clock parent cache by defining
clk_get_parent_by_index(clk, index). This allows access to parent
clocks from clock drivers.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Mike Turquette <mturquette@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c
include/linux/clk-provider.h