diff options
| author | Siva Durga Prasad Paladugu <[email protected]> | 2016-01-11 12:30:41 +0530 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2016-01-27 15:55:53 +0100 |
| commit | f72132673a01216e760864e442f168977cce2bd2 (patch) | |
| tree | f40c78d365a762f7cf13b40c874eb0e884bac6e0 /drivers | |
| parent | 38c4761c236e0d8efd6b552d6b036015097c7bd9 (diff) | |
fpga: xilinx: Check for substring in device ID validation
Check for substrings in deviceID validation check
so that it can support xa bitstreams also.
Signed-off-by: Siva Durga Prasad Paladugu <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'drivers')
| -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 c765a74a25e..d459a2f7a57 100644 --- a/drivers/fpga/xilinx.c +++ b/drivers/fpga/xilinx.c @@ -75,8 +75,8 @@ int fpga_loadbitstream(int devnum, char *fpgadata, size_t size, buffer[i] = *dataptr++; if (xdesc->name) { - i = strncmp(buffer, xdesc->name, strlen(xdesc->name)); - if (i) { + i = (ulong)strstr(buffer, xdesc->name); + if (!i) { printf("%s: Wrong bitstream ID for this device\n", __func__); printf("%s: Bitstream ID %s, current device ID %d/%s\n", |
