projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ae731a
)
drivers: base: Convert to printk alias functions
author
Matthias Brugger
<mbrugger@suse.com>
Mon, 8 Jun 2020 09:52:17 +0000
(11:52 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 12:16:44 +0000
(14:16 +0200)
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>
drivers/base/driver.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/driver.c
b/drivers/base/driver.c
index 57c68769e157496f3f6b3e458ea488590449361e..8c0d33e182fd5b0781aa7ba5e811da418fee168a 100644
(file)
--- a/
drivers/base/driver.c
+++ b/
drivers/base/driver.c
@@
-158,12
+158,12
@@
int driver_register(struct device_driver *drv)
if ((drv->bus->probe && drv->probe) ||
(drv->bus->remove && drv->remove) ||
(drv->bus->shutdown && drv->shutdown))
- pr
intk(KERN_WARNING
"Driver '%s' needs updating - please use "
+ pr
_warn(
"Driver '%s' needs updating - please use "
"bus_type methods\n", drv->name);
other = driver_find(drv->name, drv->bus);
if (other) {
- pr
intk(KERN_ERR
"Error: Driver '%s' is already registered, "
+ pr
_err(
"Error: Driver '%s' is already registered, "
"aborting...\n", drv->name);
return -EBUSY;
}