drivers: base: Convert to printk alias functions
The file mixes printk calls together with calls to pr_*(). Covert to printk alias functions to unify the code. Signed-off-by: Matthias Brugger <mbrugger@suse.com> Link: https://lore.kernel.org/r/20200608095217.21162-2-matthias.bgg@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7ae731a844
commit
5962b8b271
|
@ -158,12 +158,12 @@ int driver_register(struct device_driver *drv)
|
||||||
if ((drv->bus->probe && drv->probe) ||
|
if ((drv->bus->probe && drv->probe) ||
|
||||||
(drv->bus->remove && drv->remove) ||
|
(drv->bus->remove && drv->remove) ||
|
||||||
(drv->bus->shutdown && drv->shutdown))
|
(drv->bus->shutdown && drv->shutdown))
|
||||||
printk(KERN_WARNING "Driver '%s' needs updating - please use "
|
pr_warn("Driver '%s' needs updating - please use "
|
||||||
"bus_type methods\n", drv->name);
|
"bus_type methods\n", drv->name);
|
||||||
|
|
||||||
other = driver_find(drv->name, drv->bus);
|
other = driver_find(drv->name, drv->bus);
|
||||||
if (other) {
|
if (other) {
|
||||||
printk(KERN_ERR "Error: Driver '%s' is already registered, "
|
pr_err("Error: Driver '%s' is already registered, "
|
||||||
"aborting...\n", drv->name);
|
"aborting...\n", drv->name);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user