]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: samsung: Use %pe format to simplify
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Thu, 26 Feb 2026 20:54:47 +0000 (21:54 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Sat, 28 Feb 2026 15:08:42 +0000 (16:08 +0100)
Make code printing pointer error value a bit simpler and fix coccinelle
suggestion:

  clk.c:363:16-23: WARNING: Consider using %pe to print PTR_ERR()

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260226205445.336839-4-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/clk/samsung/clk.c

index 94b2bccc7d02f302b8989cd3a5359dd9bbb612b0..91e5cdbc79d76dbe9c898376200d696c3ff26337 100644 (file)
@@ -359,8 +359,8 @@ void __init samsung_clk_register_gate(struct samsung_clk_provider *ctx,
                                ctx->reg_base + list->offset, list->bit_idx,
                                list->gate_flags, &ctx->lock);
                if (IS_ERR(clk_hw)) {
-                       pr_err("%s: failed to register clock %s: %ld\n", __func__,
-                               list->name, PTR_ERR(clk_hw));
+                       pr_err("%s: failed to register clock %s: %pe\n", __func__,
+                              list->name, clk_hw);
                        continue;
                }