/* edac_create_mci_instance_attributes create MC driver specific attributes at the topmost level directory of this mci instance.  */
static int edac_create_mci_instance_attributes(struct mem_ctl_info *mci)
/* edac_create_mci_instance_attributes create MC driver specific attributes at the topmost level directory of this mci instance.  */
static int edac_create_mci_instance_attributes(struct mem_ctl_info *mci)
{
	int err;
	struct mcidev_sysfs_attribute *sysfs_attrib;
	sysfs_attrib = mci->mc_driver_sysfs_attributes;
	while (sysfs_attrib && sysfs_attrib->attr.name) {
		err = sysfs_create_file(&mci->edac_mci_kobj,
					(struct attribute*) sysfs_attrib);
		if (err) {
			return err;
		}
		sysfs_attrib++;
	}
	return 0;
}