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>
This commit is contained in:
Masahiro Yamada 2017-10-13 19:22:02 +09:00
parent ab05406e73
commit def4eadba9

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