mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
fpga: Check device name against bitstream name
Ensure that wrong bitstream won't be loaded to current device. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@ti.com>
This commit is contained in:
@ -72,8 +72,8 @@ static const fpga_desc *const fpga_get_desc(int devnum)
|
||||
* fpga_validate
|
||||
* generic parameter checking code
|
||||
*/
|
||||
static const fpga_desc *const fpga_validate(int devnum, const void *buf,
|
||||
size_t bsize, char *fn)
|
||||
const fpga_desc *const fpga_validate(int devnum, const void *buf,
|
||||
size_t bsize, char *fn)
|
||||
{
|
||||
const fpga_desc *desc = fpga_get_desc(devnum);
|
||||
|
||||
|
Reference in New Issue
Block a user