Commit 59fef9dc authored by Luis Fernando Ruiz's avatar Luis Fernando Ruiz

svec: some debug output cleaning.

parent 591b3ec9
......@@ -162,8 +162,6 @@ int svec_fmc_create(struct svec_dev *svec, unsigned int n)
struct fmc_device *fmc = svec->fmcs + n;
int ret = 0;
printk(KERN_ERR "%s enters\n", __func__);
if (n<0 || n>1)
return -EINVAL;
......@@ -189,7 +187,5 @@ int svec_fmc_create(struct svec_dev *svec, unsigned int n)
return ret;
}
printk(KERN_ERR "%s exits\n", __func__);
return ret;
}
......@@ -202,7 +202,6 @@ int svec_i2c_init(struct fmc_device *fmc, unsigned int slot)
found = mi2c_scan(fmc);
if (!found) {
fmc->flags |= FMC_DEVICE_NO_MEZZANINE;
printk(KERN_ERR "FMC_DEVICE_NO_MEZZANINE\n");
return 0;
}
......
......@@ -507,20 +507,21 @@ static int __init svec_init(void)
/* Device creation for the carrier, just in case... */
error = alloc_chrdev_region(&svec_devno, 0, lun_num, "svec");
if (error) {
printk(KERN_ERR PFX "Failed to allocate chrdev region\n");
pr_err("%s: Failed to allocate chrdev region\n", __func__);
goto out;
}
svec_class = class_create(THIS_MODULE, "svec");
if (IS_ERR(svec_class)) {
printk(KERN_ERR PFX "Failed to create svec class\n");
pr_err("%s: Failed to create svec class\n", __func__);
error = PTR_ERR(svec_class);
goto out;
}
error = vme_register_driver(&svec_driver, lun_num);
if (error) {
printk(KERN_ERR PFX "Cannot register vme driver - lun [%d]\n", lun_num);
pr_err("%s: Cannot register vme driver - lun [%d]\n", __func__,
lun_num);
class_destroy(svec_class);
}
......
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