Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364406
b: refs/heads/master
c: 30d9d42
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Mar 25, 2013
1 parent dd63f36 commit 602b7a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: c3452f5e444446fad9bb1957d22a25334798f94c
refs/heads/master: 30d9d42e9a7c205cc139dce743463b8070684df5
12 changes: 2 additions & 10 deletions trunk/drivers/usb/serial/cyberjack.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#define CYBERJACK_PRODUCT_ID 0x0100

/* Function prototypes */
static void cyberjack_disconnect(struct usb_serial *serial);
static int cyberjack_port_probe(struct usb_serial_port *port);
static int cyberjack_port_remove(struct usb_serial_port *port);
static int cyberjack_open(struct tty_struct *tty,
Expand Down Expand Up @@ -79,7 +78,6 @@ static struct usb_serial_driver cyberjack_device = {
.description = "Reiner SCT Cyberjack USB card reader",
.id_table = id_table,
.num_ports = 1,
.disconnect = cyberjack_disconnect,
.port_probe = cyberjack_port_probe,
.port_remove = cyberjack_port_remove,
.open = cyberjack_open,
Expand Down Expand Up @@ -130,20 +128,14 @@ static int cyberjack_port_remove(struct usb_serial_port *port)
{
struct cyberjack_private *priv;

usb_kill_urb(port->interrupt_in_urb);

priv = usb_get_serial_port_data(port);
kfree(priv);

return 0;
}

static void cyberjack_disconnect(struct usb_serial *serial)
{
int i;

for (i = 0; i < serial->num_ports; ++i)
usb_kill_urb(serial->port[i]->interrupt_in_urb);
}

static int cyberjack_open(struct tty_struct *tty,
struct usb_serial_port *port)
{
Expand Down

0 comments on commit 602b7a0

Please sign in to comment.