aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/hotplug/fakephp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/fakephp.c b/drivers/pci/hotplug/fakephp.c
index 2dc7828df480..6151389fd903 100644
--- a/drivers/pci/hotplug/fakephp.c
+++ b/drivers/pci/hotplug/fakephp.c
@@ -18,6 +18,7 @@
18#include <linux/sysfs.h> 18#include <linux/sysfs.h>
19#include <linux/init.h> 19#include <linux/init.h>
20#include <linux/pci.h> 20#include <linux/pci.h>
21#include <linux/device.h>
21#include "../pci.h" 22#include "../pci.h"
22 23
23struct legacy_slot { 24struct legacy_slot {
@@ -88,7 +89,7 @@ static int legacy_add_slot(struct pci_dev *pdev)
88 89
89 if (kobject_init_and_add(&slot->kobj, &legacy_ktype, 90 if (kobject_init_and_add(&slot->kobj, &legacy_ktype,
90 &pci_slots_kset->kobj, "%s", 91 &pci_slots_kset->kobj, "%s",
91 pdev->dev.bus_id)) { 92 dev_name(&pdev->dev))) {
92 dev_warn(&pdev->dev, "Failed to created legacy fake slot\n"); 93 dev_warn(&pdev->dev, "Failed to created legacy fake slot\n");
93 return -EINVAL; 94 return -EINVAL;
94 } 95 }