diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-07-20 07:57:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-05 16:36:48 -0400 |
commit | 7faad1dfbbe008fe564d94c1b154695fcc13d748 (patch) | |
tree | b769214a7c86cd098a3706b6c5011763849ae333 /drivers/auxdisplay/ks0108.c | |
parent | bab383de3b84e584b0f09227151020b2a43dc34c (diff) |
auxdisplay: ks0108: start using pr_*
Start using pr_* macros instead of using printk and in the process
define pr_fmt.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/auxdisplay/ks0108.c')
-rw-r--r-- | drivers/auxdisplay/ks0108.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/auxdisplay/ks0108.c b/drivers/auxdisplay/ks0108.c index 0d752851a1ee..30d6d0e4d766 100644 --- a/drivers/auxdisplay/ks0108.c +++ b/drivers/auxdisplay/ks0108.c | |||
@@ -23,6 +23,8 @@ | |||
23 | * | 23 | * |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
27 | |||
26 | #include <linux/init.h> | 28 | #include <linux/init.h> |
27 | #include <linux/module.h> | 29 | #include <linux/module.h> |
28 | #include <linux/kernel.h> | 30 | #include <linux/kernel.h> |
@@ -132,8 +134,7 @@ static int __init ks0108_init(void) | |||
132 | 134 | ||
133 | ks0108_parport = parport_find_base(ks0108_port); | 135 | ks0108_parport = parport_find_base(ks0108_port); |
134 | if (ks0108_parport == NULL) { | 136 | if (ks0108_parport == NULL) { |
135 | printk(KERN_ERR KS0108_NAME ": ERROR: " | 137 | pr_err("ERROR: parport didn't find %i port\n", ks0108_port); |
136 | "parport didn't find %i port\n", ks0108_port); | ||
137 | goto none; | 138 | goto none; |
138 | } | 139 | } |
139 | 140 | ||
@@ -141,15 +142,14 @@ static int __init ks0108_init(void) | |||
141 | NULL, NULL, NULL, PARPORT_DEV_EXCL, NULL); | 142 | NULL, NULL, NULL, PARPORT_DEV_EXCL, NULL); |
142 | parport_put_port(ks0108_parport); | 143 | parport_put_port(ks0108_parport); |
143 | if (ks0108_pardevice == NULL) { | 144 | if (ks0108_pardevice == NULL) { |
144 | printk(KERN_ERR KS0108_NAME ": ERROR: " | 145 | pr_err("ERROR: parport didn't register new device\n"); |
145 | "parport didn't register new device\n"); | ||
146 | goto none; | 146 | goto none; |
147 | } | 147 | } |
148 | 148 | ||
149 | result = parport_claim(ks0108_pardevice); | 149 | result = parport_claim(ks0108_pardevice); |
150 | if (result != 0) { | 150 | if (result != 0) { |
151 | printk(KERN_ERR KS0108_NAME ": ERROR: " | 151 | pr_err("ERROR: can't claim %i parport, maybe in use\n", |
152 | "can't claim %i parport, maybe in use\n", ks0108_port); | 152 | ks0108_port); |
153 | ret = result; | 153 | ret = result; |
154 | goto registered; | 154 | goto registered; |
155 | } | 155 | } |