|
@@ -125,9 +125,8 @@ void dgnc_create_driver_sysfiles(struct pci_driver *dgnc_driver)
|
|
rc |= driver_create_file(driverfs, &driver_attr_debug);
|
|
rc |= driver_create_file(driverfs, &driver_attr_debug);
|
|
rc |= driver_create_file(driverfs, &driver_attr_rawreadok);
|
|
rc |= driver_create_file(driverfs, &driver_attr_rawreadok);
|
|
rc |= driver_create_file(driverfs, &driver_attr_pollrate);
|
|
rc |= driver_create_file(driverfs, &driver_attr_pollrate);
|
|
- if (rc) {
|
|
|
|
|
|
+ if (rc)
|
|
printk(KERN_ERR "DGNC: sysfs driver_create_file failed!\n");
|
|
printk(KERN_ERR "DGNC: sysfs driver_create_file failed!\n");
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -397,9 +396,8 @@ void dgnc_create_ports_sysfiles(struct dgnc_board *bd)
|
|
rc |= device_create_file(&(bd->pdev->dev), &dev_attr_ports_txcount);
|
|
rc |= device_create_file(&(bd->pdev->dev), &dev_attr_ports_txcount);
|
|
rc |= device_create_file(&(bd->pdev->dev), &dev_attr_vpd);
|
|
rc |= device_create_file(&(bd->pdev->dev), &dev_attr_vpd);
|
|
rc |= device_create_file(&(bd->pdev->dev), &dev_attr_serial_number);
|
|
rc |= device_create_file(&(bd->pdev->dev), &dev_attr_serial_number);
|
|
- if (rc) {
|
|
|
|
|
|
+ if (rc)
|
|
printk(KERN_ERR "DGNC: sysfs device_create_file failed!\n");
|
|
printk(KERN_ERR "DGNC: sysfs device_create_file failed!\n");
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|