Commit 8cbb5e3f authored by Mark Hounschell's avatar Mark Hounschell Committed by Greg Kroah-Hartman

staging: dgap: Fix printk related errors as reported by checkpatch

This patch fixes some printk related errors report by checkpatch.
Signed-off-by: default avatarMark Hounschell <markh@compro.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 01a8d255
...@@ -540,7 +540,7 @@ static int dgap_init_module(void) ...@@ -540,7 +540,7 @@ static int dgap_init_module(void)
if (dgap_NumBoards) if (dgap_NumBoards)
pci_unregister_driver(&dgap_driver); pci_unregister_driver(&dgap_driver);
else 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(); dgap_cleanup_module();
} else { } else {
...@@ -2948,7 +2948,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf, int ...@@ -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)) { if (copy_from_user(dgap_TmpWriteBuf, (const uchar __user *) buf, count)) {
up(&dgap_TmpWriteSem); up(&dgap_TmpWriteSem);
printk("Write: Copy from user failed!\n");
return -EFAULT; return -EFAULT;
} }
...@@ -6689,7 +6688,6 @@ static void dgap_create_tty_sysfs(struct un_t *un, struct device *c) ...@@ -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); ret = sysfs_create_group(&c->kobj, &dgap_tty_attribute_group);
if (ret) { if (ret) {
printk(KERN_ERR "dgap: failed to create sysfs tty device attributes.\n");
sysfs_remove_group(&c->kobj, &dgap_tty_attribute_group); sysfs_remove_group(&c->kobj, &dgap_tty_attribute_group);
return; return;
} }
...@@ -7563,7 +7561,7 @@ static char *dgap_getword(char **in) ...@@ -7563,7 +7561,7 @@ static char *dgap_getword(char **in)
*/ */
static void dgap_err(char *s) static void dgap_err(char *s)
{ {
printk("DGAP: parse: %s\n", s); pr_err("dgap: parse: %s\n", s);
} }
/* /*
......
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