summaryrefslogtreecommitdiff
path: root/drivers/fpga/socfpga_arria10.c
diff options
context:
space:
mode:
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>2018-10-15 20:35:10 +0200
committerMarek Vasut <marex@denx.de>2018-10-31 01:41:10 +0100
commitd5de3d497849d337b4da601c93a4cee2d127c20a (patch)
treebd04b6809f4e769c0ce15c31dc480d9d029c0ce1 /drivers/fpga/socfpga_arria10.c
parent454cf76184c65426b68033a23da086e73663f2fc (diff)
downloadu-boot-d5de3d497849d337b4da601c93a4cee2d127c20a.tar.gz
arm: socfpga: fpga: fix type of local variable
The 'status' variable in 'socfpga_load()' for both gen5 and arria10 is of type 'unsigned long' while it is always used as 'int' only. Change it to 'int'. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'drivers/fpga/socfpga_arria10.c')
-rw-r--r--drivers/fpga/socfpga_arria10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c
index d6b59498e5..114dd910ab 100644
--- a/drivers/fpga/socfpga_arria10.c
+++ b/drivers/fpga/socfpga_arria10.c
@@ -453,7 +453,7 @@ int fpgamgr_program_finish(void)
*/
int socfpga_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size)
{
- unsigned long status;
+ int status;
/* disable all signals from hps peripheral controller to fpga */
writel(0, &system_manager_base->fpgaintf_en_global);