Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303895
b: refs/heads/master
c: d530296
h: refs/heads/master
i:
  303893: 98f8e78
  303891: ac061a1
  303887: c675aee
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 10, 2012
1 parent 8d30775 commit 1da8a73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: 08dfa5c5323c81a960d77c3752bd6df235094ac3
refs/heads/master: d530296f63c039a5683db665acc5ecdb3b593eb2
15 changes: 4 additions & 11 deletions trunk/drivers/usb/serial/opticon.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,18 +557,16 @@ static void opticon_release(struct usb_serial *serial)
kfree(priv);
}

static int opticon_suspend(struct usb_interface *intf, pm_message_t message)
static int opticon_suspend(struct usb_serial *serial, pm_message_t message)
{
struct usb_serial *serial = usb_get_intfdata(intf);
struct opticon_private *priv = usb_get_serial_data(serial);

usb_kill_urb(priv->bulk_read_urb);
return 0;
}

static int opticon_resume(struct usb_interface *intf)
static int opticon_resume(struct usb_serial *serial)
{
struct usb_serial *serial = usb_get_intfdata(intf);
struct opticon_private *priv = usb_get_serial_data(serial);
struct usb_serial_port *port = serial->port[0];
int result;
Expand All @@ -583,13 +581,6 @@ static int opticon_resume(struct usb_interface *intf)
return result;
}

static struct usb_driver opticon_driver = {
.name = "opticon",
.suspend = opticon_suspend,
.resume = opticon_resume,
.id_table = id_table,
};

static struct usb_serial_driver opticon_device = {
.driver = {
.owner = THIS_MODULE,
Expand All @@ -609,6 +600,8 @@ static struct usb_serial_driver opticon_device = {
.ioctl = opticon_ioctl,
.tiocmget = opticon_tiocmget,
.tiocmset = opticon_tiocmset,
.suspend = opticon_suspend,
.resume = opticon_resume,
};

static struct usb_serial_driver * const serial_drivers[] = {
Expand Down

0 comments on commit 1da8a73

Please sign in to comment.