summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-zynqmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/reset/reset-zynqmp.c')
-rw-r--r--drivers/reset/reset-zynqmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/reset/reset-zynqmp.c b/drivers/reset/reset-zynqmp.c
index daa425e74c96..59dc0ff9af9e 100644
--- a/drivers/reset/reset-zynqmp.c
+++ b/drivers/reset/reset-zynqmp.c
@@ -53,7 +53,8 @@ static int zynqmp_reset_status(struct reset_controller_dev *rcdev,
unsigned long id)
{
struct zynqmp_reset_data *priv = to_zynqmp_reset_data(rcdev);
- int val, err;
+ int err;
+ u32 val;
err = zynqmp_pm_reset_get_status(priv->data->reset_id + id, &val);
if (err)