]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: Print an error when clk registration fails
authorStephen Boyd <sboyd@kernel.org>
Wed, 26 Feb 2025 23:54:07 +0000 (15:54 -0800)
committerStephen Boyd <sboyd@kernel.org>
Tue, 4 Mar 2025 21:53:48 +0000 (13:53 -0800)
commit12a0fd23e87000e69b1777a9765c0c6e6eed0cd9
tree8814b8b4e278f1bccd5672b434311058d4c0f946
parenta1123951b24759188010a6aa3d9d0be7b996bd39
clk: Print an error when clk registration fails

We have a lot of driver code that prints an error message when
registering a clk fails. Do that in the core function instead to
consolidate code. This also helps drivers avoid the anti-pattern of
accessing the struct clk_hw::init pointer after registration.

Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20250226235408.1339266-1-sboyd@kernel.org
drivers/clk/clk.c