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 c74d16f..a40cea5 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;
 }