Commit ee42f6c9 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: serial: core: fix up printk() usage

This moves to using pr_info() where needed instead of a "raw" printk()
call, making the whole driver more unified.

It also cleans up my email address in the MODULE_AUTHOR field.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f378dfe4
...@@ -39,10 +39,7 @@ ...@@ -39,10 +39,7 @@
#include <linux/kfifo.h> #include <linux/kfifo.h>
#include "pl2303.h" #include "pl2303.h"
/* #define DRIVER_AUTHOR "Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
* Version Information
*/
#define DRIVER_AUTHOR "Greg Kroah-Hartman, greg@kroah.com, http://www.kroah.com/linux/"
#define DRIVER_DESC "USB Serial Driver core" #define DRIVER_DESC "USB Serial Driver core"
/* There is no MODULE_DEVICE_TABLE for usbserial.c. Instead /* There is no MODULE_DEVICE_TABLE for usbserial.c. Instead
...@@ -1264,8 +1261,6 @@ static int __init usb_serial_init(void) ...@@ -1264,8 +1261,6 @@ static int __init usb_serial_init(void)
goto exit_generic; goto exit_generic;
} }
printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n");
return result; return result;
exit_generic: exit_generic:
...@@ -1350,8 +1345,7 @@ static int usb_serial_register(struct usb_serial_driver *driver) ...@@ -1350,8 +1345,7 @@ static int usb_serial_register(struct usb_serial_driver *driver)
pr_err("problem %d when registering driver %s\n", retval, driver->description); pr_err("problem %d when registering driver %s\n", retval, driver->description);
list_del(&driver->driver_list); list_del(&driver->driver_list);
} else } else
printk(KERN_INFO "USB Serial support registered for %s\n", pr_info("USB Serial support registered for %s\n", driver->description);
driver->description);
mutex_unlock(&table_lock); mutex_unlock(&table_lock);
return retval; return retval;
...@@ -1359,8 +1353,7 @@ static int usb_serial_register(struct usb_serial_driver *driver) ...@@ -1359,8 +1353,7 @@ static int usb_serial_register(struct usb_serial_driver *driver)
static void usb_serial_deregister(struct usb_serial_driver *device) static void usb_serial_deregister(struct usb_serial_driver *device)
{ {
printk(KERN_INFO "USB Serial deregistering driver %s\n", pr_info("USB Serial deregistering driver %s\n", device->description);
device->description);
mutex_lock(&table_lock); mutex_lock(&table_lock);
list_del(&device->driver_list); list_del(&device->driver_list);
usb_serial_bus_deregister(device); usb_serial_bus_deregister(device);
......
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