diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-06 17:42:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:30 -0500 |
commit | 281efb17d88a91dc3b879bb1d49e3a66daf48797 (patch) | |
tree | c2136591ecd7b3536c67162cf98fdb5614e2f450 /drivers/edac/edac_pci_sysfs.c | |
parent | 1dca00bd028e96d39992f501e9251e0cda499562 (diff) |
edac: struct device: replace bus_id with dev_name(), dev_set_name()
This patch is part of a larger patch series which will remove the "char
bus_id[20]" name string from struct device. The device name is managed in
the kobject anyway, and without any size limitation, and just needlessly
copied into "struct device".
[akpm@linux-foundation.org: coding-style fixes]
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac/edac_pci_sysfs.c')
-rw-r--r-- | drivers/edac/edac_pci_sysfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/edac/edac_pci_sysfs.c b/drivers/edac/edac_pci_sysfs.c index 5c153dccc95e..422728cfe994 100644 --- a/drivers/edac/edac_pci_sysfs.c +++ b/drivers/edac/edac_pci_sysfs.c | |||
@@ -569,7 +569,7 @@ static void edac_pci_dev_parity_test(struct pci_dev *dev) | |||
569 | 569 | ||
570 | local_irq_restore(flags); | 570 | local_irq_restore(flags); |
571 | 571 | ||
572 | debugf4("PCI STATUS= 0x%04x %s\n", status, dev->dev.bus_id); | 572 | debugf4("PCI STATUS= 0x%04x %s\n", status, dev_name(&dev->dev)); |
573 | 573 | ||
574 | /* check the status reg for errors on boards NOT marked as broken | 574 | /* check the status reg for errors on boards NOT marked as broken |
575 | * if broken, we cannot trust any of the status bits | 575 | * if broken, we cannot trust any of the status bits |
@@ -600,13 +600,13 @@ static void edac_pci_dev_parity_test(struct pci_dev *dev) | |||
600 | } | 600 | } |
601 | 601 | ||
602 | 602 | ||
603 | debugf4("PCI HEADER TYPE= 0x%02x %s\n", header_type, dev->dev.bus_id); | 603 | debugf4("PCI HEADER TYPE= 0x%02x %s\n", header_type, dev_name(&dev->dev)); |
604 | 604 | ||
605 | if ((header_type & 0x7F) == PCI_HEADER_TYPE_BRIDGE) { | 605 | if ((header_type & 0x7F) == PCI_HEADER_TYPE_BRIDGE) { |
606 | /* On bridges, need to examine secondary status register */ | 606 | /* On bridges, need to examine secondary status register */ |
607 | status = get_pci_parity_status(dev, 1); | 607 | status = get_pci_parity_status(dev, 1); |
608 | 608 | ||
609 | debugf4("PCI SEC_STATUS= 0x%04x %s\n", status, dev->dev.bus_id); | 609 | debugf4("PCI SEC_STATUS= 0x%04x %s\n", status, dev_name(&dev->dev)); |
610 | 610 | ||
611 | /* check the secondary status reg for errors, | 611 | /* check the secondary status reg for errors, |
612 | * on NOT broken boards | 612 | * on NOT broken boards |