]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pwm: rzg2l-gpt: Add missing newlines to dev_err_probe() messages
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 4 Jun 2026 09:56:34 +0000 (10:56 +0100)
committerUwe Kleine-König <ukleinek@kernel.org>
Tue, 9 Jun 2026 13:46:00 +0000 (15:46 +0200)
dev_err_probe() internally calls dev_err() which uses pr_fmt() and
printk(). Kernel log messages should end with a newline character
to ensure proper log formatting. Add missing '\n' at the end of
the error strings in rzg2l_gpt_probe().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20260604095647.108654-5-biju.das.jz@bp.renesas.com
Fixes: 061f087f5d0b ("pwm: Add support for RZ/G2L GPT")
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-rzg2l-gpt.c

index c9dfa59bc1ead5bed584f2f5d33792b0c9be9993..dfa1d11a48a825354fdc76ebdbbf6e1d2cc6bad2 100644 (file)
@@ -408,14 +408,14 @@ static int rzg2l_gpt_probe(struct platform_device *pdev)
 
        rate = clk_get_rate(clk);
        if (!rate)
-               return dev_err_probe(dev, -EINVAL, "The gpt clk rate is 0");
+               return dev_err_probe(dev, -EINVAL, "The gpt clk rate is 0\n");
 
        /*
         * Refuse clk rates > 1 GHz to prevent overflow later for computing
         * period and duty cycle.
         */
        if (rate > NSEC_PER_SEC)
-               return dev_err_probe(dev, -EINVAL, "The gpt clk rate is > 1GHz");
+               return dev_err_probe(dev, -EINVAL, "The gpt clk rate is > 1GHz\n");
 
        /*
         * Rate is in MHz and is always integer for peripheral clk
@@ -424,7 +424,7 @@ static int rzg2l_gpt_probe(struct platform_device *pdev)
         */
        rzg2l_gpt->rate_khz = rate / KILO;
        if (rzg2l_gpt->rate_khz * KILO != rate)
-               return dev_err_probe(dev, -EINVAL, "Rate is not multiple of 1000");
+               return dev_err_probe(dev, -EINVAL, "Rate is not multiple of 1000\n");
 
        mutex_init(&rzg2l_gpt->lock);