soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 17 Jun 2016 13:06:13 +0000 (18:36 +0530)
committerThierry Reding <treding@nvidia.com>
Tue, 15 Nov 2016 14:51:50 +0000 (15:51 +0100)
The function tegra_pmc_readl() returns the u32 type data and hence
change the data type of variable where this data is stored to u32
type.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c

index 3013c6d285210246cea0ae8d1af7ad232f74398e..01da62484e208e571209b2e0bdbe16f81f114e20 100644 (file)
@@ -942,10 +942,10 @@ static int tegra_io_rail_prepare(unsigned int id, unsigned long *request,
        return 0;
 }
 
-static int tegra_io_rail_poll(unsigned long offset, unsigned long mask,
-                             unsigned long val, unsigned long timeout)
+static int tegra_io_rail_poll(unsigned long offset, u32 mask,
+                             u32 val, unsigned long timeout)
 {
-       unsigned long value;
+       u32 value;
 
        timeout = jiffies + msecs_to_jiffies(timeout);