aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgap
diff options
context:
space:
mode:
authorMark Hounschell <markh@compro.net>2014-03-03 14:20:51 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-06 12:05:20 -0800
commit8cbb5e3f9d0ba08fd151a3bb404d9183bb86be1a (patch)
tree6bc159c7009d011ba817c1ca01ebf418b3040e57 /drivers/staging/dgap
parentstaging:dgap: Fix externs should be avoided in .c files as reported by checkpatch (diff)
downloadlinux-dev-8cbb5e3f9d0ba08fd151a3bb404d9183bb86be1a.tar.xz
linux-dev-8cbb5e3f9d0ba08fd151a3bb404d9183bb86be1a.zip
staging: dgap: Fix printk related errors as reported by checkpatch
This patch fixes some printk related errors report by checkpatch. Signed-off-by: Mark Hounschell <markh@compro.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r--drivers/staging/dgap/dgap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index cac2791b29ff..29d38e7ac933 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -540,7 +540,7 @@ static int dgap_init_module(void)
if (dgap_NumBoards)
pci_unregister_driver(&dgap_driver);
else
- printk("WARNING: dgap driver load failed. No DGAP boards found.\n");
+ pr_err("dgap: driver load failed. No boards found.\n");
dgap_cleanup_module();
} else {
@@ -2948,7 +2948,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf, int
if (copy_from_user(dgap_TmpWriteBuf, (const uchar __user *) buf, count)) {
up(&dgap_TmpWriteSem);
- printk("Write: Copy from user failed!\n");
return -EFAULT;
}
@@ -6689,7 +6688,6 @@ static void dgap_create_tty_sysfs(struct un_t *un, struct device *c)
ret = sysfs_create_group(&c->kobj, &dgap_tty_attribute_group);
if (ret) {
- printk(KERN_ERR "dgap: failed to create sysfs tty device attributes.\n");
sysfs_remove_group(&c->kobj, &dgap_tty_attribute_group);
return;
}
@@ -7563,7 +7561,7 @@ static char *dgap_getword(char **in)
*/
static void dgap_err(char *s)
{
- printk("DGAP: parse: %s\n", s);
+ pr_err("dgap: parse: %s\n", s);
}
/*