aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2012-05-07 11:24:05 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-07 16:05:51 -0400
commitc7f3619b90fc4c43ed326ec8b3f0299374763c92 (patch)
tree1568da7543af6b538cff54cbf61527b80a5369b0
parent5cbe61c5aff0a8ada691eb8b07dbfb55c303f640 (diff)
usb-serial: clean up unneeded PM-related fields
This patch (as1551) cleans up the PM-related entries in the usb_driver structures of the various USB serial driver modules. Those entries are now filled in by the usb-serial core during driver registration, so they don't need to be initialized explicitly in the source code. The same is true of the one remaining no_dynamic_id entry. reset_resume remains a small problem, because the serial core doesn't support it. The patch ignores these entries. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/serial/ch341.c3
-rw-r--r--drivers/usb/serial/f81232.c4
-rw-r--r--drivers/usb/serial/option.c5
-rw-r--r--drivers/usb/serial/pl2303.c3
-rw-r--r--drivers/usb/serial/qcserial.c3
-rw-r--r--drivers/usb/serial/sierra.c3
-rw-r--r--drivers/usb/serial/ssu100.c3
7 files changed, 0 insertions, 24 deletions
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c
index 70c46b0426ff..ba4f067cf277 100644
--- a/drivers/usb/serial/ch341.c
+++ b/drivers/usb/serial/ch341.c
@@ -599,11 +599,8 @@ static struct usb_driver ch341_driver = {
599 .name = "ch341", 599 .name = "ch341",
600 .probe = usb_serial_probe, 600 .probe = usb_serial_probe,
601 .disconnect = usb_serial_disconnect, 601 .disconnect = usb_serial_disconnect,
602 .suspend = usb_serial_suspend,
603 .resume = usb_serial_resume,
604 .reset_resume = ch341_reset_resume, 602 .reset_resume = ch341_reset_resume,
605 .id_table = id_table, 603 .id_table = id_table,
606 .supports_autosuspend = 1,
607}; 604};
608 605
609static struct usb_serial_driver ch341_device = { 606static struct usb_serial_driver ch341_device = {
diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c
index 46aee85210e2..c32486d73a76 100644
--- a/drivers/usb/serial/f81232.c
+++ b/drivers/usb/serial/f81232.c
@@ -355,10 +355,6 @@ static struct usb_driver f81232_driver = {
355 .probe = usb_serial_probe, 355 .probe = usb_serial_probe,
356 .disconnect = usb_serial_disconnect, 356 .disconnect = usb_serial_disconnect,
357 .id_table = id_table, 357 .id_table = id_table,
358 .suspend = usb_serial_suspend,
359 .resume = usb_serial_resume,
360 .no_dynamic_id = 1,
361 .supports_autosuspend = 1,
362}; 358};
363 359
364static struct usb_serial_driver f81232_device = { 360static struct usb_serial_driver f81232_device = {
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index ae0b4aa9aa59..d1674bc3d4fa 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -1224,11 +1224,6 @@ static struct usb_driver option_driver = {
1224 .name = "option", 1224 .name = "option",
1225 .probe = usb_serial_probe, 1225 .probe = usb_serial_probe,
1226 .disconnect = usb_serial_disconnect, 1226 .disconnect = usb_serial_disconnect,
1227#ifdef CONFIG_PM
1228 .suspend = usb_serial_suspend,
1229 .resume = usb_serial_resume,
1230 .supports_autosuspend = 1,
1231#endif
1232 .id_table = option_ids, 1227 .id_table = option_ids,
1233}; 1228};
1234 1229
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 9eec2c3574d8..34e51a04dde0 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -100,9 +100,6 @@ static struct usb_driver pl2303_driver = {
100 .probe = usb_serial_probe, 100 .probe = usb_serial_probe,
101 .disconnect = usb_serial_disconnect, 101 .disconnect = usb_serial_disconnect,
102 .id_table = id_table, 102 .id_table = id_table,
103 .suspend = usb_serial_suspend,
104 .resume = usb_serial_resume,
105 .supports_autosuspend = 1,
106}; 103};
107 104
108#define SET_LINE_REQUEST_TYPE 0x21 105#define SET_LINE_REQUEST_TYPE 0x21
diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c
index 201f2810d503..3696924c1eb3 100644
--- a/drivers/usb/serial/qcserial.c
+++ b/drivers/usb/serial/qcserial.c
@@ -117,9 +117,6 @@ static struct usb_driver qcdriver = {
117 .probe = usb_serial_probe, 117 .probe = usb_serial_probe,
118 .disconnect = usb_serial_disconnect, 118 .disconnect = usb_serial_disconnect,
119 .id_table = id_table, 119 .id_table = id_table,
120 .suspend = usb_serial_suspend,
121 .resume = usb_serial_resume,
122 .supports_autosuspend = true,
123}; 120};
124 121
125static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id) 122static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c
index f298ddaac684..7b7771491a64 100644
--- a/drivers/usb/serial/sierra.c
+++ b/drivers/usb/serial/sierra.c
@@ -1055,11 +1055,8 @@ static struct usb_driver sierra_driver = {
1055 .name = "sierra", 1055 .name = "sierra",
1056 .probe = usb_serial_probe, 1056 .probe = usb_serial_probe,
1057 .disconnect = usb_serial_disconnect, 1057 .disconnect = usb_serial_disconnect,
1058 .suspend = usb_serial_suspend,
1059 .resume = usb_serial_resume,
1060 .reset_resume = sierra_reset_resume, 1058 .reset_resume = sierra_reset_resume,
1061 .id_table = id_table, 1059 .id_table = id_table,
1062 .supports_autosuspend = 1,
1063}; 1060};
1064 1061
1065static struct usb_serial_driver sierra_device = { 1062static struct usb_serial_driver sierra_device = {
diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c
index cda513bb01c7..9820492cf885 100644
--- a/drivers/usb/serial/ssu100.c
+++ b/drivers/usb/serial/ssu100.c
@@ -68,9 +68,6 @@ static struct usb_driver ssu100_driver = {
68 .probe = usb_serial_probe, 68 .probe = usb_serial_probe,
69 .disconnect = usb_serial_disconnect, 69 .disconnect = usb_serial_disconnect,
70 .id_table = id_table, 70 .id_table = id_table,
71 .suspend = usb_serial_suspend,
72 .resume = usb_serial_resume,
73 .supports_autosuspend = 1,
74}; 71};
75 72
76struct ssu100_port_private { 73struct ssu100_port_private {