diff options
author | Varsha Rao <rvarsha016@gmail.com> | 2017-04-07 07:34:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-08 11:53:06 -0400 |
commit | 8ab44b4003381cf4bae7ccdfe81059aa9ce76033 (patch) | |
tree | 98f511760a2bc0fa31596c512c14fbcf899f8871 | |
parent | 5b884a95a5561c9ccea7b5cdf6a2fe9b48b589f5 (diff) |
drivers: char: misc: Replace printk with pr_err.
Replace printk with pr_err to fix the checkpatch issue.
Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/char/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c index 1312e29deb00..c9cd1ea6844a 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c | |||
@@ -294,7 +294,7 @@ static int __init misc_init(void) | |||
294 | return 0; | 294 | return 0; |
295 | 295 | ||
296 | fail_printk: | 296 | fail_printk: |
297 | printk("unable to get major %d for misc devices\n", MISC_MAJOR); | 297 | pr_err("unable to get major %d for misc devices\n", MISC_MAJOR); |
298 | class_destroy(misc_class); | 298 | class_destroy(misc_class); |
299 | fail_remove: | 299 | fail_remove: |
300 | if (ret) | 300 | if (ret) |