static void skel_delete(struct kref *kref) { struct usb_skel *dev = to_skel_dev(kref); usb_put_dev(dev->udev); kfree (dev->bulk_in_buffer); kfree (dev); }
static void skel_delete(struct kref *kref) { struct usb_skel *dev = to_skel_dev(kref); printk(KERN_INFO "eric_del\n"); usb_free_urb(dev->bulk_in_urb); usb_put_dev(dev->udev); kfree(dev->bulk_in_buffer); kfree(dev); }