dev_name introduction fall out fix
Commit 06916639e2
("driver-core: add
dev_name() to help transition away from using bus_id") added a static
inline dev_name() and used it in dev_printk.
Unfortunately, drivers/edac/edac_core.h defines a macro called
dev_name(). Rename the latter.
Diagnosis by Tony Breeds and Michael Ellerman.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
108c196184
commit
17aa7e0344
@@ -333,7 +333,7 @@ static int add_edac_dev_to_global_list(struct edac_device_ctl_info *edac_dev)
|
||||
fail0:
|
||||
edac_printk(KERN_WARNING, EDAC_MC,
|
||||
"%s (%s) %s %s already assigned %d\n",
|
||||
rover->dev->bus_id, dev_name(rover),
|
||||
rover->dev->bus_id, edac_dev_name(rover),
|
||||
rover->mod_name, rover->ctl_name, rover->dev_idx);
|
||||
return 1;
|
||||
|
||||
@@ -538,7 +538,7 @@ int edac_device_add_device(struct edac_device_ctl_info *edac_dev)
|
||||
"'%s': DEV '%s' (%s)\n",
|
||||
edac_dev->mod_name,
|
||||
edac_dev->ctl_name,
|
||||
dev_name(edac_dev),
|
||||
edac_dev_name(edac_dev),
|
||||
edac_op_state_to_string(edac_dev->op_state));
|
||||
|
||||
mutex_unlock(&device_ctls_mutex);
|
||||
@@ -599,7 +599,7 @@ struct edac_device_ctl_info *edac_device_del_device(struct device *dev)
|
||||
edac_printk(KERN_INFO, EDAC_MC,
|
||||
"Removed device %d for %s %s: DEV %s\n",
|
||||
edac_dev->dev_idx,
|
||||
edac_dev->mod_name, edac_dev->ctl_name, dev_name(edac_dev));
|
||||
edac_dev->mod_name, edac_dev->ctl_name, edac_dev_name(edac_dev));
|
||||
|
||||
return edac_dev;
|
||||
}
|
||||
|
Reference in New Issue
Block a user