diff options
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_glue.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 648596d469f6..9342c848db29 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -258,7 +258,12 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) | |||
258 | bridge->pci_bus->number, slot->device); | 258 | bridge->pci_bus->number, slot->device); |
259 | retval = acpiphp_register_hotplug_slot(slot); | 259 | retval = acpiphp_register_hotplug_slot(slot); |
260 | if (retval) { | 260 | if (retval) { |
261 | warn("acpiphp_register_hotplug_slot failed(err code = 0x%x)\n", retval); | 261 | if (retval == -EBUSY) |
262 | warn("Slot %d already registered by another " | ||
263 | "hotplug driver\n", slot->sun); | ||
264 | else | ||
265 | warn("acpiphp_register_hotplug_slot failed " | ||
266 | "(err code = 0x%x)\n", retval); | ||
262 | goto err_exit; | 267 | goto err_exit; |
263 | } | 268 | } |
264 | } | 269 | } |
@@ -1867,19 +1872,3 @@ u8 acpiphp_get_adapter_status(struct acpiphp_slot *slot) | |||
1867 | 1872 | ||
1868 | return (sta == 0) ? 0 : 1; | 1873 | return (sta == 0) ? 0 : 1; |
1869 | } | 1874 | } |
1870 | |||
1871 | |||
1872 | /* | ||
1873 | * pci address (seg/bus/dev) | ||
1874 | */ | ||
1875 | u32 acpiphp_get_address(struct acpiphp_slot *slot) | ||
1876 | { | ||
1877 | u32 address; | ||
1878 | struct pci_bus *pci_bus = slot->bridge->pci_bus; | ||
1879 | |||
1880 | address = (pci_domain_nr(pci_bus) << 16) | | ||
1881 | (pci_bus->number << 8) | | ||
1882 | slot->device; | ||
1883 | |||
1884 | return address; | ||
1885 | } | ||