]> git.sur5r.net Git - u-boot/commitdiff
reset: uniphier: fix the first argument passed to dev_err()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 13 Oct 2017 10:22:02 +0000 (19:22 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 15 Oct 2017 13:32:25 +0000 (22:32 +0900)
priv->dev does not exist.  Pass the correct pointer to udevice.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/reset/reset-uniphier.c

index c74d16fe206577fbdd640d6789324906b8f6dda2..a40cea55aea4919b1e1cc86929c7f83c6a6a11bd 100644 (file)
@@ -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;
 }