diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-24 15:50:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-24 15:50:30 -0500 |
commit | f799e7678390029e322ae2dc3cda389b11f38124 (patch) | |
tree | 2317bf56e7d941c80f3beb590aa703d6c50f64d2 /drivers/usb/serial/usb-serial.c | |
parent | 8c49fc99b67eab0f75c3353406745d379c782121 (diff) |
USB: serial: remove usb_serial_register and usb_serial_deregister
No one uses them anymore, they should be using the safer
usb_serial_register_drivers() and usb_serial_deregister_drivers()
functions instead.
Thanks to Alan Stern for writing these functions and porting all
in-kernel users to them.
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 45b3658c601f..63ba47dbcc71 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -1338,12 +1338,7 @@ static void fixup_generic(struct usb_serial_driver *device) | |||
1338 | set_to_generic_if_null(device, prepare_write_buffer); | 1338 | set_to_generic_if_null(device, prepare_write_buffer); |
1339 | } | 1339 | } |
1340 | 1340 | ||
1341 | /* | 1341 | static int usb_serial_register(struct usb_serial_driver *driver) |
1342 | * The next two routines are mainly for internal use. | ||
1343 | * They are exported only for out-of-tree modules. | ||
1344 | * New drivers should call usb_serial_{de}register_drivers() instead. | ||
1345 | */ | ||
1346 | int usb_serial_register(struct usb_serial_driver *driver) | ||
1347 | { | 1342 | { |
1348 | int retval; | 1343 | int retval; |
1349 | 1344 | ||
@@ -1377,10 +1372,8 @@ int usb_serial_register(struct usb_serial_driver *driver) | |||
1377 | mutex_unlock(&table_lock); | 1372 | mutex_unlock(&table_lock); |
1378 | return retval; | 1373 | return retval; |
1379 | } | 1374 | } |
1380 | EXPORT_SYMBOL_GPL(usb_serial_register); | ||
1381 | |||
1382 | 1375 | ||
1383 | void usb_serial_deregister(struct usb_serial_driver *device) | 1376 | static void usb_serial_deregister(struct usb_serial_driver *device) |
1384 | { | 1377 | { |
1385 | printk(KERN_INFO "USB Serial deregistering driver %s\n", | 1378 | printk(KERN_INFO "USB Serial deregistering driver %s\n", |
1386 | device->description); | 1379 | device->description); |
@@ -1389,7 +1382,6 @@ void usb_serial_deregister(struct usb_serial_driver *device) | |||
1389 | usb_serial_bus_deregister(device); | 1382 | usb_serial_bus_deregister(device); |
1390 | mutex_unlock(&table_lock); | 1383 | mutex_unlock(&table_lock); |
1391 | } | 1384 | } |
1392 | EXPORT_SYMBOL_GPL(usb_serial_deregister); | ||
1393 | 1385 | ||
1394 | /** | 1386 | /** |
1395 | * usb_serial_register_drivers - register drivers for a usb-serial module | 1387 | * usb_serial_register_drivers - register drivers for a usb-serial module |