aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i82875p_edac.c
diff options
context:
space:
mode:
authorDave Jiang <djiang@mvista.com>2007-07-19 04:49:47 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:53 -0400
commitc4192705fec85219086231a1c0fa61e8776e2c3b (patch)
tree2ac7f03963fbc1bec8457a0f4a61adeb398a5df7 /drivers/edac/i82875p_edac.c
parent20bcb7a81dee21bfa3408f03f46b2891c9b5c84b (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/i82875p_edac.c')
-rw-r--r--drivers/edac/i82875p_edac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c
index c53f08d764c4..485525e4e8e8 100644
--- a/drivers/edac/i82875p_edac.c
+++ b/drivers/edac/i82875p_edac.c
@@ -407,6 +407,7 @@ static int i82875p_probe1(struct pci_dev *pdev, int dev_idx)
407 mci->mod_name = EDAC_MOD_STR; 407 mci->mod_name = EDAC_MOD_STR;
408 mci->mod_ver = I82875P_REVISION; 408 mci->mod_ver = I82875P_REVISION;
409 mci->ctl_name = i82875p_devs[dev_idx].ctl_name; 409 mci->ctl_name = i82875p_devs[dev_idx].ctl_name;
410 mci->dev_name = pci_name(pdev);
410 mci->edac_check = i82875p_check; 411 mci->edac_check = i82875p_check;
411 mci->ctl_page_to_phys = NULL; 412 mci->ctl_page_to_phys = NULL;
412 debugf3("%s(): init pvt\n", __func__); 413 debugf3("%s(): init pvt\n", __func__);