diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-04-16 18:01:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-17 10:05:35 -0700 |
commit | ef31025d6811320ead36a8902b16090dea01b34c (patch) | |
tree | 390839169f9c4a6571347207fabee47913a6269c | |
parent | cced926f0e4fb02a08d2d14e443631fe8a28db98 (diff) | |
download | linux-ef31025d6811320ead36a8902b16090dea01b34c.tar.gz linux-ef31025d6811320ead36a8902b16090dea01b34c.tar.bz2 linux-ef31025d6811320ead36a8902b16090dea01b34c.zip |
USB: symbolserial: remove unused private data
Use port device for debug messages in interrupt-urb callback and remove
unused private data.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/serial/symbolserial.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index 32ebddf7f010..2c2bfa1994f8 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c @@ -26,13 +26,10 @@ static const struct usb_device_id id_table[] = { }; MODULE_DEVICE_TABLE(usb, id_table); -/* This structure holds all of the individual device information */ struct symbol_private { - struct usb_device *udev; spinlock_t lock; /* protects the following flags */ bool throttled; bool actually_throttled; - bool rts; }; static void symbol_int_callback(struct urb *urb) @@ -77,7 +74,7 @@ static void symbol_int_callback(struct urb *urb) tty_insert_flip_string(&port->port, &data[1], data_length); tty_flip_buffer_push(&port->port); } else { - dev_dbg(&priv->udev->dev, + dev_dbg(&port->dev, "Improper amount of data received from the device, " "%d bytes", urb->actual_length); } @@ -170,7 +167,6 @@ static int symbol_startup(struct usb_serial *serial) return -ENOMEM; } spin_lock_init(&priv->lock); - priv->udev = serial->dev; usb_set_serial_data(serial, priv); return 0; |