]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Get the CLK by index without device
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 27 Feb 2019 18:56:52 +0000 (00:26 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 8 May 2019 19:14:13 +0000 (00:44 +0530)
commit531a12eb2114163b3165d90206e6dd213b1a083d
tree3985d971f43df769093a3461e7dfb43c27893043
parent308011539366c5e444469128eff90a8d51db24c4
clk: Get the CLK by index without device

Getting a CLK by index with device is not straight forward
for some use-cases like handling clock operations for child
node in parent driver. So we need to process the child node
in parent probe via ofnode and process CLK operation for child
without udevice but with ofnode.

So add clk_get_by_index_nodev() and move the common code
in clk_get_by_index_tail() to use for clk_get_by_index()

Cc: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk-uclass.c
include/clk.h