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 <yamada.masahiro@socionext.com>
diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index c74d16f..a40cea5 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -210,7 +210,8 @@
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;
}