diff options
Diffstat (limited to 'drivers/media/dvb/siano/smsusb.c')
-rw-r--r-- | drivers/media/dvb/siano/smsusb.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/dvb/siano/smsusb.c b/drivers/media/dvb/siano/smsusb.c index 50d4338610e0..0b8da57cf4c3 100644 --- a/drivers/media/dvb/siano/smsusb.c +++ b/drivers/media/dvb/siano/smsusb.c | |||
@@ -288,8 +288,7 @@ static int smsusb1_setmode(void *context, int mode) | |||
288 | 288 | ||
289 | static void smsusb_term_device(struct usb_interface *intf) | 289 | static void smsusb_term_device(struct usb_interface *intf) |
290 | { | 290 | { |
291 | struct smsusb_device_t *dev = | 291 | struct smsusb_device_t *dev = usb_get_intfdata(intf); |
292 | (struct smsusb_device_t *) usb_get_intfdata(intf); | ||
293 | 292 | ||
294 | if (dev) { | 293 | if (dev) { |
295 | smsusb_stop_streaming(dev); | 294 | smsusb_stop_streaming(dev); |
@@ -445,8 +444,7 @@ static void smsusb_disconnect(struct usb_interface *intf) | |||
445 | 444 | ||
446 | static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) | 445 | static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) |
447 | { | 446 | { |
448 | struct smsusb_device_t *dev = | 447 | struct smsusb_device_t *dev = usb_get_intfdata(intf); |
449 | (struct smsusb_device_t *)usb_get_intfdata(intf); | ||
450 | printk(KERN_INFO "%s: Entering status %d.\n", __func__, msg.event); | 448 | printk(KERN_INFO "%s: Entering status %d.\n", __func__, msg.event); |
451 | smsusb_stop_streaming(dev); | 449 | smsusb_stop_streaming(dev); |
452 | return 0; | 450 | return 0; |
@@ -455,8 +453,7 @@ static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) | |||
455 | static int smsusb_resume(struct usb_interface *intf) | 453 | static int smsusb_resume(struct usb_interface *intf) |
456 | { | 454 | { |
457 | int rc, i; | 455 | int rc, i; |
458 | struct smsusb_device_t *dev = | 456 | struct smsusb_device_t *dev = usb_get_intfdata(intf); |
459 | (struct smsusb_device_t *)usb_get_intfdata(intf); | ||
460 | struct usb_device *udev = interface_to_usbdev(intf); | 457 | struct usb_device *udev = interface_to_usbdev(intf); |
461 | 458 | ||
462 | printk(KERN_INFO "%s: Entering.\n", __func__); | 459 | printk(KERN_INFO "%s: Entering.\n", __func__); |