summaryrefslogtreecommitdiff
path: root/arch/arm/mach-zynq
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-01-12 14:24:50 +0100
committerMichal Simek <michal.simek@xilinx.com>2018-01-30 14:28:31 +0100
commit5a60a548f7dfc3c792ca0e24c0427f72b31e7c9f (patch)
treed05f7af57c69eb7cbdd01f06063f7787c30754ff /arch/arm/mach-zynq
parent77cbd9536e6800c1ae259044298db7321b1f67aa (diff)
downloadu-boot-5a60a548f7dfc3c792ca0e24c0427f72b31e7c9f.tar.gz
arm: zynq: Fix types in ps7_spl_init
The patch is fixing the following Warning: arch/arm/mach-zynq/ps7_spl_init.c:133:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (ioread(addr) < delay) ^ Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq')
-rw-r--r--arch/arm/mach-zynq/ps7_spl_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-zynq/ps7_spl_init.c b/arch/arm/mach-zynq/ps7_spl_init.c
index 6dc4e0364d..ba2dad759c 100644
--- a/arch/arm/mach-zynq/ps7_spl_init.c
+++ b/arch/arm/mach-zynq/ps7_spl_init.c
@@ -58,7 +58,7 @@ static void perf_start_clock(void)
}
/* Compute mask for given delay in miliseconds*/
-static int get_number_of_cycles_for_delay(unsigned int delay)
+static unsigned long get_number_of_cycles_for_delay(unsigned long delay)
{
return (APU_FREQ / (2 * 1000)) * delay;
}
@@ -92,7 +92,7 @@ int __weak ps7_config(unsigned long *ps7_config_init)
unsigned long mask;
unsigned int numargs;
int i;
- int delay;
+ unsigned long delay;
for (;;) {
opcode = ptr[0];