summaryrefslogtreecommitdiffstats
path: root/drivers/reset
diff options
context:
space:
mode:
authorSai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>2021-06-23 13:46:20 +0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2021-08-23 12:55:18 +0200
commited104ca4bd9c405b41e968ad4ece51f6462e90b6 (patch)
tree21ed647e78b1765a2f3d18f147649feeb6585912 /drivers/reset
parent1435f82689e1d195e56ce8b19c81aa7b1a3bd0b0 (diff)
downloadlinux-ed104ca4bd9c405b41e968ad4ece51f6462e90b6.tar.bz2
reset: reset-zynqmp: Fixed the argument data type
This patch changes the data type of the variable 'val' from int to u32. Addresses-Coverity: argument of type "int *" is incompatible with parameter of type "u32 *" Signed-off-by: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/925cebbe4eb73c7d0a536da204748d33c7100d8c.1624448778.git.michal.simek@xilinx.com Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-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)