Commit 7faad1df authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

auxdisplay: ks0108: start using pr_*

Start using pr_* macros instead of using printk and in the process
define pr_fmt.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bab383de
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
* *
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -132,8 +134,7 @@ static int __init ks0108_init(void) ...@@ -132,8 +134,7 @@ static int __init ks0108_init(void)
ks0108_parport = parport_find_base(ks0108_port); ks0108_parport = parport_find_base(ks0108_port);
if (ks0108_parport == NULL) { if (ks0108_parport == NULL) {
printk(KERN_ERR KS0108_NAME ": ERROR: " pr_err("ERROR: parport didn't find %i port\n", ks0108_port);
"parport didn't find %i port\n", ks0108_port);
goto none; goto none;
} }
...@@ -141,15 +142,14 @@ static int __init ks0108_init(void) ...@@ -141,15 +142,14 @@ static int __init ks0108_init(void)
NULL, NULL, NULL, PARPORT_DEV_EXCL, NULL); NULL, NULL, NULL, PARPORT_DEV_EXCL, NULL);
parport_put_port(ks0108_parport); parport_put_port(ks0108_parport);
if (ks0108_pardevice == NULL) { if (ks0108_pardevice == NULL) {
printk(KERN_ERR KS0108_NAME ": ERROR: " pr_err("ERROR: parport didn't register new device\n");
"parport didn't register new device\n");
goto none; goto none;
} }
result = parport_claim(ks0108_pardevice); result = parport_claim(ks0108_pardevice);
if (result != 0) { if (result != 0) {
printk(KERN_ERR KS0108_NAME ": ERROR: " pr_err("ERROR: can't claim %i parport, maybe in use\n",
"can't claim %i parport, maybe in use\n", ks0108_port); ks0108_port);
ret = result; ret = result;
goto registered; goto registered;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment