]> git.dujemihanovic.xyz Git - u-boot.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)
commite96e2132f977aab738994c11162b14695029be6e
tree5a16211b6c2812f67a81083d85bd11d31a672e19
parenta0abea867a0d344d8e5290adf6380903b0f52e0f
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