diff options
author | Dave Jiang <djiang@mvista.com> | 2007-07-19 04:49:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:53 -0400 |
commit | c4192705fec85219086231a1c0fa61e8776e2c3b (patch) | |
tree | 2ac7f03963fbc1bec8457a0f4a61adeb398a5df7 /drivers/edac/r82600_edac.c | |
parent | 20bcb7a81dee21bfa3408f03f46b2891c9b5c84b (diff) |
drivers/edac: add dev_name getter function
Move dev_name() macro to a more generic interface since it's not possible
to determine whether a device is pci, platform, or of_device easily.
Now each low level driver sets the name into the control structure, and
the EDAC core references the control structure for the information.
Better abstraction.
Signed-off-by: Dave Jiang <djiang@mvista.com>
Signed-off-by: Douglas Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac/r82600_edac.c')
-rw-r--r-- | drivers/edac/r82600_edac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/edac/r82600_edac.c b/drivers/edac/r82600_edac.c index bc322001114b..4285958c73b7 100644 --- a/drivers/edac/r82600_edac.c +++ b/drivers/edac/r82600_edac.c | |||
@@ -11,7 +11,7 @@ | |||
11 | * | 11 | * |
12 | * Written with reference to 82600 High Integration Dual PCI System | 12 | * Written with reference to 82600 High Integration Dual PCI System |
13 | * Controller Data Book: | 13 | * Controller Data Book: |
14 | * http://www.radisys.com/files/support_downloads/007-01277-0002.82600DataBook.pdf | 14 | * www.radisys.com/files/support_downloads/007-01277-0002.82600DataBook.pdf |
15 | * references to this document given in [] | 15 | * references to this document given in [] |
16 | */ | 16 | */ |
17 | 17 | ||
@@ -305,6 +305,7 @@ static int r82600_probe1(struct pci_dev *pdev, int dev_idx) | |||
305 | mci->mod_name = EDAC_MOD_STR; | 305 | mci->mod_name = EDAC_MOD_STR; |
306 | mci->mod_ver = R82600_REVISION; | 306 | mci->mod_ver = R82600_REVISION; |
307 | mci->ctl_name = "R82600"; | 307 | mci->ctl_name = "R82600"; |
308 | mci->dev_name = pci_name(pdev); | ||
308 | mci->edac_check = r82600_check; | 309 | mci->edac_check = r82600_check; |
309 | mci->ctl_page_to_phys = NULL; | 310 | mci->ctl_page_to_phys = NULL; |
310 | r82600_init_csrows(mci, pdev, dramcr); | 311 | r82600_init_csrows(mci, pdev, dramcr); |