Skip to content
Commit 09844d0d authored by Yang Xiwen's avatar Yang Xiwen Committed by Sean Anderson
Browse files

clk: check parent_name in clk_register to avoid confusing log_error() output



For some gate clocks and fixed clocks without a parent, calling
clk_register will print an useless error message indicating that parent
is missing. Fix that by gaurding log_xxx() with an if-statement.

Signed-off-by: default avatarYang Xiwen <forbidden405@outlook.com>
Suggested-by: default avatarSean Anderson <seanga2@gmail.com>
Reviewed-by: default avatarSean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20230807-clk-fix-v2-1-0b688e21fb4e@outlook.com
parent 3ac22891
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment