Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303856
b: refs/heads/master
c: 2edd284
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 7, 2012
1 parent 0b9bc59 commit c0daee1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3abee859c13ec6a0f49a7234eef011f5d45136f1
refs/heads/master: 2edd284bd752e58ccb312f3d623267fb79857db3
14 changes: 0 additions & 14 deletions trunk/drivers/usb/serial/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ static int debug;

#ifdef CONFIG_USB_SERIAL_GENERIC

static int generic_probe(struct usb_interface *interface,
const struct usb_device_id *id);

static __u16 vendor = 0x05f9;
static __u16 product = 0xffff;

Expand All @@ -51,7 +48,6 @@ static const struct usb_device_id generic_serial_ids[] = {

static struct usb_driver generic_driver = {
.name = "usbserial_generic",
.probe = generic_probe,
.id_table = generic_serial_ids,
};

Expand All @@ -74,16 +70,6 @@ static struct usb_serial_driver * const serial_drivers[] = {
&usb_serial_generic_device, NULL
};

static int generic_probe(struct usb_interface *interface,
const struct usb_device_id *id)
{
const struct usb_device_id *id_pattern;

id_pattern = usb_match_id(interface, generic_device_ids);
if (id_pattern != NULL)
return usb_serial_probe(interface, id);
return -ENODEV;
}
#endif

int usb_serial_generic_register(int _debug)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ static const struct tty_port_operations serial_port_ops = {
.shutdown = serial_down,
};

int usb_serial_probe(struct usb_interface *interface,
static int usb_serial_probe(struct usb_interface *interface,
const struct usb_device_id *id)
{
struct usb_device *dev = interface_to_usbdev(interface);
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/usb/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,6 @@ extern void usb_serial_deregister_drivers(struct usb_driver *udriver,
struct usb_serial_driver * const serial_drivers[]);
extern void usb_serial_port_softint(struct usb_serial_port *port);

extern int usb_serial_probe(struct usb_interface *iface,
const struct usb_device_id *id);

extern int usb_serial_suspend(struct usb_interface *intf, pm_message_t message);
extern int usb_serial_resume(struct usb_interface *intf);

Expand Down

0 comments on commit c0daee1

Please sign in to comment.