diff options
author | Yang Xiwen <forbidden405@outlook.com> | 2023-11-11 03:19:52 +0800 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2023-12-15 12:31:15 -0500 |
commit | 09844d0de5550e7f91246031220074a80b5a821a (patch) | |
tree | e7394b5d86c8f4a6c1d2bff58d3cf56c4f88ff97 /drivers/clk/clk-composite.c | |
parent | 3ac22891cfc0dc6d8eec25d2b0fbdd2eb8f3d3ed (diff) |
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: Yang Xiwen <forbidden405@outlook.com>
Suggested-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20230807-clk-fix-v2-1-0b688e21fb4e@outlook.com
Diffstat (limited to 'drivers/clk/clk-composite.c')
0 files changed, 0 insertions, 0 deletions