summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/shpchp.h
diff options
context:
space:
mode:
authorKristen Accardi <kristen.c.accardi@intel.com>2005-08-05 21:16:06 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 23:57:24 +0200
commit1248d636122e4ec9d7802b850904e3bb48a0da23 (patch)
treeca41930bb82ce02147f58df7b288fdf8a6b3e9b2 /drivers/pci/hotplug/shpchp.h
parent[PATCH] arch/386/pci: remap_pfn_range -> io_remap_pfn_range (diff)
downloadlinux-1248d636122e4ec9d7802b850904e3bb48a0da23.tar.xz
linux-1248d636122e4ec9d7802b850904e3bb48a0da23.zip
[PATCH] PCI Hotplug: use bus_slot number for name
For systems with multiple hotplug controllers, you need to use more than just the slot number to uniquely name the slot. Without a unique slot name, the pci_hp_register() will fail. This patch adds the bus number to the name. Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
-rw-r--r--drivers/pci/hotplug/shpchp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h
index fe4d653da188..b7d1c61d6bbb 100644
--- a/drivers/pci/hotplug/shpchp.h
+++ b/drivers/pci/hotplug/shpchp.h
@@ -411,7 +411,7 @@ static inline void return_resource(struct pci_resource **head, struct pci_resour
static inline void make_slot_name(char *buffer, int buffer_size, struct slot *slot)
{
- snprintf(buffer, buffer_size, "%d", slot->number);
+ snprintf(buffer, buffer_size, "%04d_%04d", slot->bus, slot->number);
}
enum php_ctlr_type {