From: Stephen Rothwell Date: Thu, 26 Mar 2009 07:34:33 +0000 (+1100) Subject: PCI: update fakephp for bus_id removal X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~27085^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7bb2cb3e90dc49be1cd14956c155451499c857a7;p=mirror_ubuntu-artful-kernel.git PCI: update fakephp for bus_id removal Get rid of a new use of bus_id that snuck in. Signed-off-by: Stephen Rothwell Signed-off-by: Jesse Barnes --- 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 @@ #include #include #include +#include #include "../pci.h" struct legacy_slot { @@ -88,7 +89,7 @@ static int legacy_add_slot(struct pci_dev *pdev) if (kobject_init_and_add(&slot->kobj, &legacy_ktype, &pci_slots_kset->kobj, "%s", - pdev->dev.bus_id)) { + dev_name(&pdev->dev))) { dev_warn(&pdev->dev, "Failed to created legacy fake slot\n"); return -EINVAL; }