]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Add clk_get_by_name_optional
authorSean Anderson <seanga2@gmail.com>
Sat, 15 Jan 2022 20:52:47 +0000 (15:52 -0500)
committerSean Anderson <seanga2@gmail.com>
Fri, 25 Feb 2022 06:41:04 +0000 (01:41 -0500)
commit5afe68734c3ca580818cc70d5448f6b845d50c28
tree5a16211b6c2812f67a81083d85bd11d31a672e19
parentd53ce4053bffef9073dfef06a9127bbf2217828d
clk: Add clk_get_by_name_optional

This adds a helper function for clk_get_by_name in cases where the clock is
optional. Hopefully this helps point driver writers in the right direction.
Also convert some existing users.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20220115205247.566210-2-seanga2@gmail.com
drivers/clk/clk_zynq.c
drivers/rng/meson-rng.c
include/clk.h