]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pwm: aspeed: replace %pe in dev_err()
authorDavid Lechner <dlechner@baylibre.com>
Wed, 17 Dec 2025 00:56:35 +0000 (18:56 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 2 Jan 2026 21:51:54 +0000 (15:51 -0600)
Replace %pe with %d and adjust the argument accordingly in a dev_err()
call in the pwm-aspeed driver. U-boot doesn't support the %pe format
specifier. Likely it was copied from Linux.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
drivers/pwm/pwm-aspeed.c

index eefe018448f434f17dbfbf5b05c1730b2a346c96..74e79686dfcdc3a3a1455f5766d51a89c5652453 100644 (file)
@@ -211,8 +211,7 @@ static int aspeed_pwm_probe(struct udevice *dev)
        }
        ret = reset_deassert(&priv->reset);
        if (ret) {
-               dev_err(dev, "cannot deassert reset control: %pe\n",
-                       ERR_PTR(ret));
+               dev_err(dev, "cannot deassert reset control: %d\n", ret);
                return ret;
        }