diff options
author | Greg KH <gregkh@suse.de> | 2008-07-03 09:49:39 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-07-07 16:02:40 -0700 |
commit | c6c4f070a61b2b6e5cd317a5fbf25255878688a2 (patch) | |
tree | 7831df47d77b4307c91ab0ef8edfd2615271e7d5 /arch | |
parent | eebfcfb52ce753eaaa8525078bda6b539586066c (diff) | |
download | blackbird-obmc-linux-c6c4f070a61b2b6e5cd317a5fbf25255878688a2.tar.gz blackbird-obmc-linux-c6c4f070a61b2b6e5cd317a5fbf25255878688a2.zip |
PCI: make pci_name use dev_name
Also fixes up the sparc code that was assuming this is not a constant.
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index 112b09f16f36..d00a3656c287 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c @@ -408,7 +408,7 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm, dev->class = class >> 8; dev->revision = class & 0xff; - sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus), + sprintf(dev->dev.bus_id, "%04x:%02x:%02x.%d", pci_domain_nr(bus), dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); if (ofpci_verbose) |