diff mbox series

[13/20] reset: uniphier: fix the first argument passed to dev_err()

Message ID 1507890129-1543-14-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit def4eadba9f11f92608761506637df3ab91c72bc
Headers show
Series ARM: uniphier: various refactoring for v2017.11-rc2 | expand

Commit Message

Masahiro Yamada Oct. 13, 2017, 10:22 a.m. UTC
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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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 @@  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;
 }