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

Masahiro Yamada yamada.masahiro at socionext.com
Fri Oct 13 10:22:02 UTC 2017


priv->dev does not exist.  Pass the correct pointer to udevice.

Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---

 drivers/reset/reset-uniphier.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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



More information about the U-Boot mailing list