Commit 485b34c2 authored by Cruz Julian Bishop's avatar Cruz Julian Bishop Committed by Greg Kroah-Hartman

staging: Fixes some checkpatch warnings in asus_oled/asus_oled.c

This fixes the following warnings:

	1: Changes a printk(KERN_ERR) call to a pr_err call in line 785
	2: Changes a printk(KERN_ERR) call to a pr_err call in line 791
	3: Changes a printk(KERN_ERR) call to a pr_err call in line 798
	4: Reduces line length below 80 at line 785 (Not intended)
	5: Reduces line length below 80 at line 798 (Not intended)
Signed-off-by: default avatarCruz Julian Bishop <cruz@massive-dynamics.biz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b7c5a774
...@@ -782,20 +782,20 @@ static int __init asus_oled_init(void) ...@@ -782,20 +782,20 @@ static int __init asus_oled_init(void)
oled_class = class_create(THIS_MODULE, ASUS_OLED_UNDERSCORE_NAME); oled_class = class_create(THIS_MODULE, ASUS_OLED_UNDERSCORE_NAME);
if (IS_ERR(oled_class)) { if (IS_ERR(oled_class)) {
printk(KERN_ERR "Error creating " ASUS_OLED_UNDERSCORE_NAME " class\n"); pr_err("Error creating " ASUS_OLED_UNDERSCORE_NAME " class\n");
return PTR_ERR(oled_class); return PTR_ERR(oled_class);
} }
retval = class_create_file(oled_class, &class_attr_version.attr); retval = class_create_file(oled_class, &class_attr_version.attr);
if (retval) { if (retval) {
printk(KERN_ERR "Error creating class version file\n"); pr_err("Error creating class version file\n");
goto error; goto error;
} }
retval = usb_register(&oled_driver); retval = usb_register(&oled_driver);
if (retval) { if (retval) {
printk(KERN_ERR "usb_register failed. Error number %d\n", retval); pr_err("usb_register failed. Error number %d\n", retval);
goto error; goto error;
} }
......
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