aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/slot.c')
-rw-r--r--drivers/pci/slot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c
index b9b90ab6b861..0e009c3ba5fd 100644
--- a/drivers/pci/slot.c
+++ b/drivers/pci/slot.c
@@ -83,6 +83,7 @@ static struct kobj_type pci_slot_ktype = {
83 * @parent: struct pci_bus of parent bridge 83 * @parent: struct pci_bus of parent bridge
84 * @slot_nr: PCI_SLOT(pci_dev->devfn) or -1 for placeholder 84 * @slot_nr: PCI_SLOT(pci_dev->devfn) or -1 for placeholder
85 * @name: user visible string presented in /sys/bus/pci/slots/<name> 85 * @name: user visible string presented in /sys/bus/pci/slots/<name>
86 * @hotplug: set if caller is hotplug driver, NULL otherwise
86 * 87 *
87 * PCI slots have first class attributes such as address, speed, width, 88 * PCI slots have first class attributes such as address, speed, width,
88 * and a &struct pci_slot is used to manage them. This interface will 89 * and a &struct pci_slot is used to manage them. This interface will
@@ -111,7 +112,8 @@ static struct kobj_type pci_slot_ktype = {
111 */ 112 */
112 113
113struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr, 114struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
114 const char *name) 115 const char *name,
116 struct hotplug_slot *hotplug)
115{ 117{
116 struct pci_dev *dev; 118 struct pci_dev *dev;
117 struct pci_slot *slot; 119 struct pci_slot *slot;