Skip to content

Commit

Permalink
USB: serial: remove usb_serial_disconnect call in all drivers
Browse files Browse the repository at this point in the history
This is now set by the usb-serial core, no need for the driver to
individually set it.

Thanks to Alan Stern for the idea to get rid of it.

Cc: William Greathouse <wgreathouse@smva.com>
Cc: Matthias Bruestle and Harald Welte <support@reiner-sct.com>
Cc: Lonnie Mendez <dignome@gmail.com>
Cc: Peter Berger <pberger@brimson.com>
Cc: Al Borchers <alborchers@steinerpoint.com>
Cc: Gary Brubaker <xavyer@ix.netcom.com>
Cc: Oliver Neukum <oliver@neukum.name>
Cc: Matthias Urlichs <smurf@smurf.noris.de>
Cc: Support Department <support@connecttech.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Kautuk Consul <consul.kautuk@gmail.com>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Bart Hartgers <bart.hartgers@gmail.com>
Cc: Johan Hovold <jhovold@gmail.com>
Cc: Preston Fick <preston.fick@silabs.com>
Cc: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Cc: Simon Arlott <simon@fire.lp0.eu>
Cc: Andrew Worsley <amworsley@gmail.com>
Cc: "Michał Wróbel" <michal.wrobel@flytronic.pl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Aleksey Babahin <tamerlan311@gmail.com>
Cc: Dan Carpenter <error27@gmail.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Donald Lee <donald@asix.com.tw>
Cc: Julia Lawall <julia@diku.dk>
Cc: Michal Sroczynski <msroczyn@gmail.com>
Cc: Wang YanQing <Udknight@gmail.com>
Cc: Dan Williams <dcbw@redhat.com>
Cc: Thomas Tuttle <ttuttle@chromium.org>
Cc: Rigbert Hamisch <rigbert@gmx.de>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Jesper Juhl <jj@chaosbits.net>
Cc: Adhir Ramjiawan <adhirramjiawan0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed May 7, 2012
1 parent 5026bb0 commit 32078f9
Show file tree
Hide file tree
Showing 54 changed files with 13 additions and 66 deletions.
1 change: 0 additions & 1 deletion drivers/staging/quatech_usb2/quatech_usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ MODULE_DEVICE_TABLE(usb, quausb2_id_table);
/* custom structures we need go here */
static struct usb_driver quausb2_usb_driver = {
.name = "quatech-usb2-serial",
.disconnect = usb_serial_disconnect,
.id_table = quausb2_id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/serqt_usb2/serqt_usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ struct quatech_port {

static struct usb_driver serqt_usb_driver = {
.name = "quatech-usb-serial",
.disconnect = usb_serial_disconnect,
.id_table = serqt_id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/aircable.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ static void aircable_process_read_urb(struct urb *urb)

static struct usb_driver aircable_driver = {
.name = "aircable",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/ark3116.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,6 @@ static void ark3116_process_read_urb(struct urb *urb)

static struct usb_driver ark3116_driver = {
.name = "ark3116",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/belkin_sa.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ MODULE_DEVICE_TABLE(usb, id_table_combined);

static struct usb_driver belkin_driver = {
.name = "belkin",
.disconnect = usb_serial_disconnect,
.id_table = id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/ch341.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ static int ch341_reset_resume(struct usb_interface *intf)

static struct usb_driver ch341_driver = {
.name = "ch341",
.disconnect = usb_serial_disconnect,
.reset_resume = ch341_reset_resume,
.id_table = id_table,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/cp210x.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ struct cp210x_port_private {

static struct usb_driver cp210x_driver = {
.name = "cp210x",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/cyberjack.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver cyberjack_driver = {
.name = "cyberjack",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/cypress_m8.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ MODULE_DEVICE_TABLE(usb, id_table_combined);

static struct usb_driver cypress_driver = {
.name = "cypress",
.disconnect = usb_serial_disconnect,
.id_table = id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/digi_acceleport.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ MODULE_DEVICE_TABLE(usb, id_table_combined);

static struct usb_driver digi_driver = {
.name = "digi_acceleport",
.disconnect = usb_serial_disconnect,
.id_table = id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/empeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver empeg_driver = {
.name = "empeg",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/f81232.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ static void f81232_release(struct usb_serial *serial)

static struct usb_driver f81232_driver = {
.name = "f81232",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@ MODULE_DEVICE_TABLE(usb, id_table_combined);

static struct usb_driver ftdi_driver = {
.name = "ftdi_sio",
.disconnect = usb_serial_disconnect,
.id_table = id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/funsoft.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver funsoft_driver = {
.name = "funsoft",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/garmin_gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver garmin_driver = {
.name = "garmin_gps",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ static const struct usb_device_id generic_serial_ids[] = {
static struct usb_driver generic_driver = {
.name = "usbserial_generic",
.probe = generic_probe,
.disconnect = usb_serial_disconnect,
.id_table = generic_serial_ids,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/hp4x.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver hp49gp_driver = {
.name = "hp4X",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/io_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ MODULE_DEVICE_TABLE(usb, id_table_combined);

static struct usb_driver io_driver = {
.name = "io_edgeport",
.disconnect = usb_serial_disconnect,
.id_table = id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/io_ti.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ MODULE_DEVICE_TABLE(usb, id_table_combined);

static struct usb_driver io_driver = {
.name = "io_ti",
.disconnect = usb_serial_disconnect,
.id_table = id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/ipaq.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ MODULE_DEVICE_TABLE(usb, ipaq_id_table);

static struct usb_driver ipaq_driver = {
.name = "ipaq",
.disconnect = usb_serial_disconnect,
.id_table = ipaq_id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/ipw.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ MODULE_DEVICE_TABLE(usb, usb_ipw_ids);

static struct usb_driver usb_ipw_driver = {
.name = "ipwtty",
.disconnect = usb_serial_disconnect,
.id_table = usb_ipw_ids,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/ir-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ MODULE_DEVICE_TABLE(usb, ir_id_table);

static struct usb_driver ir_driver = {
.name = "ir-usb",
.disconnect = usb_serial_disconnect,
.id_table = ir_id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/iuu_phoenix.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver iuu_driver = {
.name = "iuu_phoenix",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/keyspan.h
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ MODULE_DEVICE_TABLE(usb, keyspan_ids_combined);

static struct usb_driver keyspan_driver = {
.name = "keyspan",
.disconnect = usb_serial_disconnect,
.id_table = keyspan_ids_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/keyspan_pda.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ MODULE_DEVICE_TABLE(usb, id_table_combined);

static struct usb_driver keyspan_pda_driver = {
.name = "keyspan_pda",
.disconnect = usb_serial_disconnect,
.id_table = id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/kl5kusb105.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver kl5kusb105d_driver = {
.name = "kl5kusb105d",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/kobil_sct.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver kobil_driver = {
.name = "kobil",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/mct_u232.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ MODULE_DEVICE_TABLE(usb, id_table_combined);

static struct usb_driver mct_u232_driver = {
.name = "mct_u232",
.disconnect = usb_serial_disconnect,
.id_table = id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/metro-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ static void metrousb_unthrottle(struct tty_struct *tty)

static struct usb_driver metrousb_driver = {
.name = "metro-usb",
.disconnect = usb_serial_disconnect,
.id_table = id_table
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/mos7720.c
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,6 @@ static void mos7720_release(struct usb_serial *serial)

static struct usb_driver usb_driver = {
.name = "moschip7720",
.disconnect = usb_serial_disconnect,
.id_table = moschip_port_id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/mos7840.c
Original file line number Diff line number Diff line change
Expand Up @@ -2785,7 +2785,6 @@ static void mos7840_release(struct usb_serial *serial)

static struct usb_driver io_driver = {
.name = "mos7840",
.disconnect = usb_serial_disconnect,
.id_table = moschip_id_table_combined,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/moto_modem.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver moto_driver = {
.name = "moto-modem",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/navman.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver navman_driver = {
.name = "navman",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/omninet.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver omninet_driver = {
.name = "omninet",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/opticon.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ static int opticon_resume(struct usb_interface *intf)

static struct usb_driver opticon_driver = {
.name = "opticon",
.disconnect = usb_serial_disconnect,
.suspend = opticon_suspend,
.resume = opticon_resume,
.id_table = id_table,
Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,6 @@ MODULE_DEVICE_TABLE(usb, option_ids);

static struct usb_driver option_driver = {
.name = "option",
.disconnect = usb_serial_disconnect,
.id_table = option_ids,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/oti6858.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver oti6858_driver = {
.name = "oti6858",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/pl2303.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver pl2303_driver = {
.name = "pl2303",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/qcaux.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver qcaux_driver = {
.name = "qcaux",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/qcserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver qcdriver = {
.name = "qcserial",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/safe_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver safe_driver = {
.name = "safe_serial",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/siemens_mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver siemens_usb_mpi_driver = {
.name = "siemens_mpi",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/sierra.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,6 @@ static int sierra_reset_resume(struct usb_interface *intf)

static struct usb_driver sierra_driver = {
.name = "sierra",
.disconnect = usb_serial_disconnect,
.reset_resume = sierra_reset_resume,
.id_table = id_table,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/spcp8x5.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ enum spcp8x5_type {

static struct usb_driver spcp8x5_driver = {
.name = "spcp8x5",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/ssu100.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_driver ssu100_driver = {
.name = "ssu100",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/symbolserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ static void symbol_release(struct usb_serial *serial)

static struct usb_driver symbol_driver = {
.name = "symbol",
.disconnect = usb_serial_disconnect,
.id_table = id_table,
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/serial/ti_usb_3410_5052.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ static struct usb_device_id ti_id_table_combined[18+2*TI_EXTRA_VID_PID_COUNT+1]

static struct usb_driver ti_usb_driver = {
.name = "ti_usb_3410_5052",
.disconnect = usb_serial_disconnect,
.id_table = ti_id_table_combined,
};

Expand Down
Loading

0 comments on commit 32078f9

Please sign in to comment.