diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/media/dvb/siano/smsusb.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/media/dvb/siano/smsusb.c')
-rw-r--r-- | drivers/media/dvb/siano/smsusb.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/media/dvb/siano/smsusb.c b/drivers/media/dvb/siano/smsusb.c index 50d4338610e0..0c8164a2cc36 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); |
@@ -298,9 +297,8 @@ static void smsusb_term_device(struct usb_interface *intf) | |||
298 | if (dev->coredev) | 297 | if (dev->coredev) |
299 | smscore_unregister_device(dev->coredev); | 298 | smscore_unregister_device(dev->coredev); |
300 | 299 | ||
301 | kfree(dev); | ||
302 | |||
303 | sms_info("device %p destroyed", dev); | 300 | sms_info("device %p destroyed", dev); |
301 | kfree(dev); | ||
304 | } | 302 | } |
305 | 303 | ||
306 | usb_set_intfdata(intf, NULL); | 304 | usb_set_intfdata(intf, NULL); |
@@ -445,8 +443,7 @@ static void smsusb_disconnect(struct usb_interface *intf) | |||
445 | 443 | ||
446 | static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) | 444 | static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) |
447 | { | 445 | { |
448 | struct smsusb_device_t *dev = | 446 | 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); | 447 | printk(KERN_INFO "%s: Entering status %d.\n", __func__, msg.event); |
451 | smsusb_stop_streaming(dev); | 448 | smsusb_stop_streaming(dev); |
452 | return 0; | 449 | return 0; |
@@ -455,8 +452,7 @@ static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) | |||
455 | static int smsusb_resume(struct usb_interface *intf) | 452 | static int smsusb_resume(struct usb_interface *intf) |
456 | { | 453 | { |
457 | int rc, i; | 454 | int rc, i; |
458 | struct smsusb_device_t *dev = | 455 | 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); | 456 | struct usb_device *udev = interface_to_usbdev(intf); |
461 | 457 | ||
462 | printk(KERN_INFO "%s: Entering.\n", __func__); | 458 | printk(KERN_INFO "%s: Entering.\n", __func__); |