From: Laxman Dewangan Date: Fri, 17 Jun 2016 13:06:13 +0000 (+0530) Subject: soc/tegra: pmc: Correct type of variable for tegra_pmc_readl() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84cf85ea6ea29fc0c933a85fb3e900315759a581;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Jon Hunter Signed-off-by: Thierry Reding --- 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);