/* edac_device_add_main_sysfs_attributes add some attributes to this instance's main kobject  */
static int edac_device_add_main_sysfs_attributes(struct edac_device_ctl_info *edac_dev)
/* edac_device_add_main_sysfs_attributes add some attributes to this instance's main kobject  */
static int edac_device_add_main_sysfs_attributes(struct edac_device_ctl_info *edac_dev)
{
	struct edac_dev_sysfs_attribute *sysfs_attrib;
	int err = 0;
	sysfs_attrib = edac_dev->sysfs_attributes;
	if (sysfs_attrib) {
		while (sysfs_attrib->attr.name != NULL) {
			err = sysfs_create_file(&edac_dev->kobj,
				(struct attribute*) sysfs_attrib);
			if (err)
				goto err_out;
			sysfs_attrib++;
		}
	}
err_out:
	return err;
}