aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_device.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/edac_device.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/edac_device.c')
-rw-r--r--drivers/edac/edac_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c
index c579c498cc75..52db1b14fff5 100644
--- a/drivers/edac/edac_device.c
+++ b/drivers/edac/edac_device.c
@@ -264,7 +264,7 @@ static int add_edac_dev_to_global_list (struct edac_device_ctl_info *edac_dev)
264fail0: 264fail0:
265 edac_printk(KERN_WARNING, EDAC_MC, 265 edac_printk(KERN_WARNING, EDAC_MC,
266 "%s (%s) %s %s already assigned %d\n", 266 "%s (%s) %s %s already assigned %d\n",
267 rover->dev->bus_id, dev_name(rover->dev), 267 rover->dev->bus_id, dev_name(rover),
268 rover->mod_name, rover->ctl_name, rover->dev_idx); 268 rover->mod_name, rover->ctl_name, rover->dev_idx);
269 return 1; 269 return 1;
270 270
@@ -491,7 +491,7 @@ int edac_device_add_device(struct edac_device_ctl_info *edac_dev, int edac_idx)
491 "Giving out device to module '%s' controller '%s': DEV '%s' (%s)\n", 491 "Giving out device to module '%s' controller '%s': DEV '%s' (%s)\n",
492 edac_dev->mod_name, 492 edac_dev->mod_name,
493 edac_dev->ctl_name, 493 edac_dev->ctl_name,
494 dev_name(edac_dev->dev), 494 dev_name(edac_dev),
495 edac_op_state_toString(edac_dev) 495 edac_op_state_toString(edac_dev)
496 ); 496 );
497 497
@@ -553,7 +553,7 @@ struct edac_device_ctl_info * edac_device_del_device(struct device *dev)
553 edac_dev->dev_idx, 553 edac_dev->dev_idx,
554 edac_dev->mod_name, 554 edac_dev->mod_name,
555 edac_dev->ctl_name, 555 edac_dev->ctl_name,
556 dev_name(edac_dev->dev)); 556 dev_name(edac_dev));
557 557
558 return edac_dev; 558 return edac_dev;
559} 559}