/* This adds sysfs entries for a single bus  */
int pci_bus_add_child(struct pci_bus *bus)
/* This adds sysfs entries for a single bus  */
int pci_bus_add_child(struct pci_bus *bus)
{
	int retval;
	if (bus->bridge)
		bus->dev.parent = bus->bridge;
	retval = device_register(&bus->dev);
	if (retval)
		return retval;
	bus->is_added = 1;
	retval = device_create_file(&bus->dev, &dev_attr_cpuaffinity);
	if (retval)
		return retval;
	retval = device_create_file(&bus->dev, &dev_attr_cpulistaffinity);
	pci_create_legacy_files(bus);
	return retval;
}