/* Initialize sysfs. This sets up the bonding_masters file in /sys/class/net.  */
int bond_create_sysfs(void)
/* Initialize sysfs. This sets up the bonding_masters file in /sys/class/net.  */
int bond_create_sysfs(void)
{
	int ret;
	ret = netdev_class_create_file(&class_attr_bonding_masters);
	if (ret == -EEXIST) {
		if (__dev_get_by_name(&init_net,
				      class_attr_bonding_masters.attr.name))
			pr_err("network device named %s already exists in sysfs",
			       class_attr_bonding_masters.attr.name);
		ret = 0;
	}
	return ret;
}