Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: update fakephp for bus_id removal

Get rid of a new use of bus_id that snuck in.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

authored by

Stephen Rothwell and committed by
Jesse Barnes
7bb2cb3e 7ae0567f

+2 -1
+2 -1
drivers/pci/hotplug/fakephp.c
··· 18 18 #include <linux/sysfs.h> 19 19 #include <linux/init.h> 20 20 #include <linux/pci.h> 21 + #include <linux/device.h> 21 22 #include "../pci.h" 22 23 23 24 struct legacy_slot { ··· 89 88 90 89 if (kobject_init_and_add(&slot->kobj, &legacy_ktype, 91 90 &pci_slots_kset->kobj, "%s", 92 - pdev->dev.bus_id)) { 91 + dev_name(&pdev->dev))) { 93 92 dev_warn(&pdev->dev, "Failed to created legacy fake slot\n"); 94 93 return -EINVAL; 95 94 }