diff options
| author | Yang Xiwen <[email protected]> | 2023-11-11 03:19:52 +0800 |
|---|---|---|
| committer | Sean Anderson <[email protected]> | 2023-12-15 12:31:15 -0500 |
| commit | 09844d0de5550e7f91246031220074a80b5a821a (patch) | |
| tree | e7394b5d86c8f4a6c1d2bff58d3cf56c4f88ff97 /include/linux/stringify.h | |
| 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 <[email protected]>
Suggested-by: Sean Anderson <[email protected]>
Reviewed-by: Sean Anderson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
