diff options
-rw-r--r-- | drivers/net/can/usb/gs_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c index 68ac3e88a8ce..a8ef3fd9eb27 100644 --- a/drivers/net/can/usb/gs_usb.c +++ b/drivers/net/can/usb/gs_usb.c | |||
@@ -243,7 +243,7 @@ static struct gs_tx_context *gs_get_tx_context(struct gs_can *dev, | |||
243 | return NULL; | 243 | return NULL; |
244 | } | 244 | } |
245 | 245 | ||
246 | static int gs_cmd_reset(struct gs_usb *gsusb, struct gs_can *gsdev) | 246 | static int gs_cmd_reset(struct gs_can *gsdev) |
247 | { | 247 | { |
248 | struct gs_device_mode *dm; | 248 | struct gs_device_mode *dm; |
249 | struct usb_interface *intf = gsdev->iface; | 249 | struct usb_interface *intf = gsdev->iface; |
@@ -709,7 +709,7 @@ static int gs_can_close(struct net_device *netdev) | |||
709 | atomic_set(&dev->active_tx_urbs, 0); | 709 | atomic_set(&dev->active_tx_urbs, 0); |
710 | 710 | ||
711 | /* reset the device */ | 711 | /* reset the device */ |
712 | rc = gs_cmd_reset(parent, dev); | 712 | rc = gs_cmd_reset(dev); |
713 | if (rc < 0) | 713 | if (rc < 0) |
714 | netdev_warn(netdev, "Couldn't shutdown device (err=%d)", rc); | 714 | netdev_warn(netdev, "Couldn't shutdown device (err=%d)", rc); |
715 | 715 | ||