]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
PCI: handle pci_name() being const
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 Jul 2008 20:24:49 +0000 (13:24 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 3 Jul 2008 19:30:59 +0000 (12:30 -0700)
This changes pci_setup_device to handle pci_name() now returning a
constant string.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c

index 0420fd8027b64f8763f8d28486236011b1fb0e03..2f0ae70710d6ef25f9db8d9e9965d36d90e02c1b 100644 (file)
@@ -713,9 +713,9 @@ static int pci_setup_device(struct pci_dev * dev)
 {
        u32 class;
 
-       snprintf(dev->dev.bus_id, BUS_ID_SIZE,
-                "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus),
-                dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn));
+       dev_set_name(&dev->dev, "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus),
+                    dev->bus->number, PCI_SLOT(dev->devfn),
+                    PCI_FUNC(dev->devfn));
 
        pci_read_config_dword(dev, PCI_CLASS_REVISION, &class);
        dev->revision = class & 0xff;