projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2705c0
)
USB: driver.c: remove err() usage
author
Greg Kroah-Hartman
<
[email protected]
>
Fri, 20 Apr 2012 23:53:29 +0000
(16:53 -0700)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 20 Apr 2012 23:53:29 +0000
(16:53 -0700)
err() was a very old USB-specific macro that I thought had
gone away. This patch removes it from being used in the
driver and uses dev_err() instead.
CC: Markus Grabner <
[email protected]
>
CC: Stefan Hajnoczi <
[email protected]
>
CC: Julia Lawall <
[email protected]
>
CC: Dan Carpenter <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/line6/driver.c
patch
|
blob
|
history
diff --git
a/drivers/staging/line6/driver.c
b/drivers/staging/line6/driver.c
index e8023afd36562d3d75db132fa73eba4d37110282..2e602e192b07fea8d20092053f0568f44cf86efd 100644
(file)
--- a/
drivers/staging/line6/driver.c
+++ b/
drivers/staging/line6/driver.c
@@
-1307,7
+1307,8
@@
static int __init line6_init(void)
retval = usb_register(&line6_driver);
if (retval) {
- err("usb_register failed. Error number %d", retval);
+ printk(KERN_ERR KBUILD_MODNAME
+ ": usb_register failed. Error number %d\n", retval);
return retval;
}
@@
-1315,7
+1316,7
@@
static int __init line6_init(void)
GFP_KERNEL);
if (line6_request_version == NULL) {
-
err("Out of memory
");
+
printk(KERN_ERR KBUILD_MODNAME ":Out of memory\n
");
return -ENOMEM;
}