]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Fix clk_get_by_* handling of index
authorSean Anderson <seanga2@gmail.com>
Wed, 24 Jun 2020 10:41:08 +0000 (06:41 -0400)
committerAndes <uboot@andestech.com>
Wed, 1 Jul 2020 07:01:21 +0000 (15:01 +0800)
commit73c9ac31e445c895484720ca985fdfc5cd706649
treec754c17b3dd2232eee56f3048878a2c25896f03c
parenta5e4f2edcdb69679700e1677441e1a0535b1defd
clk: Fix clk_get_by_* handling of index

clk_get_by_index_nodev only ever fetched clock 1, due to passing a boolean
predicate instead of the index. Other clk_get_by_* functions got the clock
correctly, but passed a predicate instead of the index to clk_get_by_tail.
This could lead to confusing error messages.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
CC: Lukasz Majewski <lukma@denx.de>
drivers/clk/clk-uclass.c