dev_err(pdev,"Card lun %d out of range [0..%d]\n",
lun[idx],SVEC_MAX_DEVICES-1);
return-EINVAL;
}
interror=0;
svec=kzalloc(sizeof(*svec),GFP_KERNEL);
if(svec==NULL){
...
...
@@ -810,8 +783,6 @@ static int svec_probe(struct device *pdev, unsigned int ndev)
/* Initialize struct fields */
svec->verbose=verbose;
svec->lun=lun[idx];
svec->slot=vme_dev->slot;
svec->fmcs_n=SVEC_N_SLOTS;/* FIXME: Two mezzanines */
svec->dev=pdev;
...
...
@@ -831,7 +802,7 @@ static int svec_probe(struct device *pdev, unsigned int ndev)
if(svec_check_bootloader_present(svec)<0){
dev_err(pdev,
"ERROR: The SVEC expected in slot %d is not responding, the mezzanines installed on it will not be visible in the system. Please check if the card is correctly installed.\n",
svec->slot);
vme_dev->slot);
error=-ENODEV;
gotofailed;
...
...
@@ -850,7 +821,7 @@ static int svec_probe(struct device *pdev, unsigned int ndev)