From: Masahiro Yamada Date: Fri, 13 Oct 2017 10:22:02 +0000 (+0900) Subject: reset: uniphier: fix the first argument passed to dev_err() X-Git-Tag: v2017.11-rc2~40 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=def4eadba9f11f92608761506637df3ab91c72bc;p=u-boot reset: uniphier: fix the first argument passed to dev_err() priv->dev does not exist. Pass the correct pointer to udevice. Signed-off-by: Masahiro Yamada --- diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index c74d16fe20..a40cea55ae 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -210,7 +210,8 @@ static int uniphier_reset_update(struct reset_ctl *reset_ctl, int assert) return 0; } - dev_err(priv->dev, "reset_id=%lu was not handled\n", id); + dev_err(reset_ctl->dev, "reset_id=%lu was not handled\n", id); + return -EINVAL; }