diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2016-06-17 15:06:13 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-11-15 15:51:50 +0100 |
commit | 84cf85ea6ea29fc0c933a85fb3e900315759a581 (patch) | |
tree | d3c035c84c79f11b6d35a9ae10723de67748fdf3 /drivers/soc/tegra/pmc.c | |
parent | soc/tegra: pmc: Use BIT macro for register field definition (diff) | |
download | linux-84cf85ea6ea29fc0c933a85fb3e900315759a581.tar.xz linux-84cf85ea6ea29fc0c933a85fb3e900315759a581.zip |
soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()
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>
Diffstat (limited to 'drivers/soc/tegra/pmc.c')
-rw-r--r-- | drivers/soc/tegra/pmc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 3013c6d28521..01da62484e20 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -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); |