Commit 86b0ac2f authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB serial: pass the usb_device_id to the probe() function

This is needed for drivers that want to use the driver_info field.
parent 4ea79ead
...@@ -910,7 +910,7 @@ int usb_serial_probe(struct usb_interface *interface, ...@@ -910,7 +910,7 @@ int usb_serial_probe(struct usb_interface *interface,
kfree (serial); kfree (serial);
return -EIO; return -EIO;
} }
retval = type->probe (serial); retval = type->probe (serial, id);
module_put(type->owner); module_put(type->owner);
if (retval < 0) { if (retval < 0) {
......
...@@ -231,7 +231,7 @@ struct usb_serial_device_type { ...@@ -231,7 +231,7 @@ struct usb_serial_device_type {
struct list_head driver_list; struct list_head driver_list;
struct device_driver driver; struct device_driver driver;
int (*probe) (struct usb_serial *serial); int (*probe) (struct usb_serial *serial, const struct usb_device_id *id);
int (*attach) (struct usb_serial *serial); int (*attach) (struct usb_serial *serial);
int (*calc_num_ports) (struct usb_serial *serial); int (*calc_num_ports) (struct usb_serial *serial);
......
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