Explorar o código

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>
Masahiro Yamada %!s(int64=7) %!d(string=hai) anos
pai
achega
def4eadba9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      drivers/reset/reset-uniphier.c

+ 2 - 1
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;
 }