diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-12-07 05:47:35 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-07 15:09:09 -0500 |
commit | 22de54a9b929e7c11e445c8f329d33aa7b154495 (patch) | |
tree | 92b2ddcde776e01d0c1c6029542a710d5d9b73b5 /drivers/spi/spi-lm70llp.c | |
parent | 46c52c28deb38df19b1284468792fb59e6a6c27b (diff) |
spi: lm70llp: remove printk
Using pr_* macros are more prefferable than using printk. Start using
pr_* family of macros and define pr_fmt to be used with it.
While at it remove DRVNAME from an existing pr_info() as the name is now
being printed by pr_fmt.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-lm70llp.c')
-rw-r--r-- | drivers/spi/spi-lm70llp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-lm70llp.c b/drivers/spi/spi-lm70llp.c index cb2284475385..61ee0f4269ae 100644 --- a/drivers/spi/spi-lm70llp.c +++ b/drivers/spi/spi-lm70llp.c | |||
@@ -14,6 +14,8 @@ | |||
14 | * GNU General Public License for more details. | 14 | * GNU General Public License for more details. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
18 | |||
17 | #include <linux/init.h> | 19 | #include <linux/init.h> |
18 | #include <linux/module.h> | 20 | #include <linux/module.h> |
19 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
@@ -200,9 +202,7 @@ static void spi_lm70llp_attach(struct parport *p) | |||
200 | struct pardev_cb lm70llp_cb; | 202 | struct pardev_cb lm70llp_cb; |
201 | 203 | ||
202 | if (lm70llp) { | 204 | if (lm70llp) { |
203 | printk(KERN_WARNING | 205 | pr_warn("spi_lm70llp instance already loaded. Aborting.\n"); |
204 | "%s: spi_lm70llp instance already loaded. Aborting.\n", | ||
205 | DRVNAME); | ||
206 | return; | 206 | return; |
207 | } | 207 | } |
208 | 208 | ||
@@ -298,7 +298,7 @@ out_parport_unreg: | |||
298 | out_free_master: | 298 | out_free_master: |
299 | spi_master_put(master); | 299 | spi_master_put(master); |
300 | out_fail: | 300 | out_fail: |
301 | pr_info("%s: spi_lm70llp probe fail, status %d\n", DRVNAME, status); | 301 | pr_info("spi_lm70llp probe fail, status %d\n", status); |
302 | } | 302 | } |
303 | 303 | ||
304 | static void spi_lm70llp_detach(struct parport *p) | 304 | static void spi_lm70llp_detach(struct parport *p) |