diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-05-01 19:02:02 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2013-05-06 10:41:20 +0200 |
commit | 23f4bd756d5177ecedbbc32163ae456807b0fa66 (patch) | |
tree | 29c74b8a8e511650ac471a01064f112d12fbe9fa /drivers/fpga/xilinx.c | |
parent | 52c2064476a2a44a9a872c6f1d69f4444cb49cbd (diff) | |
download | u-boot-23f4bd756d5177ecedbbc32163ae456807b0fa66.tar.gz u-boot-23f4bd756d5177ecedbbc32163ae456807b0fa66.tar.xz u-boot-23f4bd756d5177ecedbbc32163ae456807b0fa66.zip |
fpga: Change the first parameter in fpga_loadbitstream
All fpga functions use devnum as int. Only fpga_loadbitstream
is using it as unsinged long dev.
This patch synchronize it.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/fpga/xilinx.c')
-rw-r--r-- | drivers/fpga/xilinx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c index 7d0342a4d1..df5f9bf919 100644 --- a/drivers/fpga/xilinx.c +++ b/drivers/fpga/xilinx.c @@ -48,7 +48,7 @@ static int xilinx_validate (Xilinx_desc * desc, char *fn); /* ------------------------------------------------------------------------- */ -int fpga_loadbitstream(unsigned long dev, char *fpgadata, size_t size) +int fpga_loadbitstream(int devnum, char *fpgadata, size_t size) { unsigned int length; unsigned int swapsize; @@ -131,7 +131,7 @@ int fpga_loadbitstream(unsigned long dev, char *fpgadata, size_t size) dataptr += 4; printf(" bytes in bitstream = %d\n", swapsize); - return fpga_load(dev, dataptr, swapsize); + return fpga_load(devnum, dataptr, swapsize); } int xilinx_load(Xilinx_desc *desc, const void *buf, size_t bsize) |