svec: do not use already_programmed

It is useless and should be no more
parent 95a811a4
......@@ -41,11 +41,6 @@ static int svec_reprogram(struct fmc_device *fmc, struct fmc_driver *drv,
struct device *dev = fmc->hwdev;
int ret = 0;
if (svec->already_reprogrammed) {
dev_info(fmc->hwdev, "Already programmed\n");
return ret;
}
if (!gw)
gw = svec_fw_name;
......@@ -87,7 +82,6 @@ static int svec_reprogram(struct fmc_device *fmc, struct fmc_driver *drv,
svec_setup_csr_fa0(svec->map[MAP_CR_CSR]->kernel_va, svec->vmebase,
svec->vector, svec->level);
svec->already_reprogrammed = 1;
out:
release_firmware(fw);
if (ret < 0)
......
......@@ -46,8 +46,6 @@ struct svec_dev {
char description[80];
struct vme_mapping *map[2];
/* FIXME: Workaround to avoid reprogram on second fd */
int already_reprogrammed;
/* struct work_struct work; */
unsigned long irqcount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment