PCI: allow PCI core hotplug to remove PCI root bus

There is no reason to prevent removal of root bus devices. A subsequent
rescan will find them just fine.

Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

authored by Alex Chiang and committed by Jesse Barnes c2ac7cdc d6141668

-4
-4
drivers/pci/pci-sysfs.c
··· 277 { 278 int ret = 0; 279 unsigned long val; 280 - struct pci_dev *pdev = to_pci_dev(dev); 281 282 if (strict_strtoul(buf, 0, &val) < 0) 283 return -EINVAL; 284 - 285 - if (pci_is_root_bus(pdev->bus)) 286 - return -EBUSY; 287 288 /* An attribute cannot be unregistered by one of its own methods, 289 * so we have to use this roundabout approach.
··· 277 { 278 int ret = 0; 279 unsigned long val; 280 281 if (strict_strtoul(buf, 0, &val) < 0) 282 return -EINVAL; 283 284 /* An attribute cannot be unregistered by one of its own methods, 285 * so we have to use this roundabout approach.