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

parisc: dino: struct device - replace bus_id with dev_name(), dev_set_name()

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

authored by

Kay Sievers and committed by
Kyle McMartin
d4995244 8b6649c5

+6 -5
+6 -5
drivers/parisc/dino.c
··· 479 479 res = &dino_dev->hba.lmmio_space; 480 480 res->flags = IORESOURCE_MEM; 481 481 size = scnprintf(name, sizeof(name), "Dino LMMIO (%s)", 482 - bus->bridge->bus_id); 482 + dev_name(bus->bridge)); 483 483 res->name = kmalloc(size+1, GFP_KERNEL); 484 484 if(res->name) 485 485 strcpy((char *)res->name, name); ··· 493 493 struct list_head *ln, *tmp_ln; 494 494 495 495 printk(KERN_ERR "Dino: cannot attach bus %s\n", 496 - bus->bridge->bus_id); 496 + dev_name(bus->bridge)); 497 497 /* kill the bus, we can't do anything with it */ 498 498 list_for_each_safe(ln, tmp_ln, &bus->devices) { 499 499 struct pci_dev *dev = pci_dev_b(ln); ··· 611 611 } 612 612 613 613 DBG("DEBUG %s assigning %d [0x%lx,0x%lx]\n", 614 - bus->self->dev.bus_id, i, 614 + dev_name(&bus->self->dev), i, 615 615 bus->self->resource[i].start, 616 616 bus->self->resource[i].end); 617 617 pci_assign_resource(bus->self, i); 618 618 DBG("DEBUG %s after assign %d [0x%lx,0x%lx]\n", 619 - bus->self->dev.bus_id, i, 619 + dev_name(&bus->self->dev), i, 620 620 bus->self->resource[i].start, 621 621 bus->self->resource[i].end); 622 622 } ··· 1026 1026 dino_current_bus = bus->subordinate + 1; 1027 1027 pci_bus_assign_resources(bus); 1028 1028 } else { 1029 - printk(KERN_ERR "ERROR: failed to scan PCI bus on %s (probably duplicate bus number %d)\n", dev->dev.bus_id, dino_current_bus); 1029 + printk(KERN_ERR "ERROR: failed to scan PCI bus on %s (probably duplicate bus number %d)\n", 1030 + dev_name(&dev->dev), dino_current_bus); 1030 1031 /* increment the bus number in case of duplicates */ 1031 1032 dino_current_bus++; 1032 1033 }