Skip to content

Commit ba75d4d

Browse files
committed
clk: samsung: Use %pe format to simplify
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>
1 parent b8d1706 commit ba75d4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/clk/samsung/clk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ void __init samsung_clk_register_gate(struct samsung_clk_provider *ctx,
359359
ctx->reg_base + list->offset, list->bit_idx,
360360
list->gate_flags, &ctx->lock);
361361
if (IS_ERR(clk_hw)) {
362-
pr_err("%s: failed to register clock %s: %ld\n", __func__,
363-
list->name, PTR_ERR(clk_hw));
362+
pr_err("%s: failed to register clock %s: %pe\n", __func__,
363+
list->name, clk_hw);
364364
continue;
365365
}
366366

0 commit comments

Comments
 (0)