]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Allow clk_get_by_name() with NULL name
authorSamuel Holland <samuel@sholland.org>
Sun, 22 Jan 2023 00:02:51 +0000 (18:02 -0600)
committerSean Anderson <seanga2@gmail.com>
Sun, 12 Feb 2023 18:44:20 +0000 (13:44 -0500)
commit2fde7af5b52066298b02f089bb42baad6d21bff6
treebb06ae6e463c3df7b8aed1b2aac2eaa4e4e0d59f
parent84213aa904e70be166716ddf807785e5bc4b0783
clk: Allow clk_get_by_name() with NULL name

This allows devm_clock_get(dev, NULL) to work and get the first clock,
which is common in code ported from Linux.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20230122000252.53642-1-samuel@sholland.org
drivers/clk/clk-uclass.c
include/clk.h
test/dm/clk.c