aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/serial/generic.c14
-rw-r--r--drivers/usb/serial/usb-serial.c2
2 files changed, 1 insertions, 15 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c
index a2dcf0871811..4e5e993771e9 100644
--- a/drivers/usb/serial/generic.c
+++ b/drivers/usb/serial/generic.c
@@ -28,9 +28,6 @@ static int debug;
28 28
29#ifdef CONFIG_USB_SERIAL_GENERIC 29#ifdef CONFIG_USB_SERIAL_GENERIC
30 30
31static int generic_probe(struct usb_interface *interface,
32 const struct usb_device_id *id);
33
34static __u16 vendor = 0x05f9; 31static __u16 vendor = 0x05f9;
35static __u16 product = 0xffff; 32static __u16 product = 0xffff;
36 33
@@ -51,7 +48,6 @@ static const struct usb_device_id generic_serial_ids[] = {
51 48
52static struct usb_driver generic_driver = { 49static struct usb_driver generic_driver = {
53 .name = "usbserial_generic", 50 .name = "usbserial_generic",
54 .probe = generic_probe,
55 .id_table = generic_serial_ids, 51 .id_table = generic_serial_ids,
56}; 52};
57 53
@@ -74,16 +70,6 @@ static struct usb_serial_driver * const serial_drivers[] = {
74 &usb_serial_generic_device, NULL 70 &usb_serial_generic_device, NULL
75}; 71};
76 72
77static int generic_probe(struct usb_interface *interface,
78 const struct usb_device_id *id)
79{
80 const struct usb_device_id *id_pattern;
81
82 id_pattern = usb_match_id(interface, generic_device_ids);
83 if (id_pattern != NULL)
84 return usb_serial_probe(interface, id);
85 return -ENODEV;
86}
87#endif 73#endif
88 74
89int usb_serial_generic_register(int _debug) 75int usb_serial_generic_register(int _debug)
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index 9791312052e9..d1840aef0d53 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -699,7 +699,7 @@ static const struct tty_port_operations serial_port_ops = {
699 .shutdown = serial_down, 699 .shutdown = serial_down,
700}; 700};
701 701
702int usb_serial_probe(struct usb_interface *interface, 702static int usb_serial_probe(struct usb_interface *interface,
703 const struct usb_device_id *id) 703 const struct usb_device_id *id)
704{ 704{
705 struct usb_device *dev = interface_to_usbdev(interface); 705 struct usb_device *dev = interface_to_usbdev(interface);