source: trunk/target/linux/omap24xx/patches-2.6.38/595-cbus-tahvo-usb-leak.patch @ 25979

Last change on this file since 25979 was 25979, checked in by mb, 5 years ago

omap24xx: Split up tahvo usb fixes

File size: 748 bytes
  • drivers/cbus/tahvo-usb.c

    old new static int __init tahvo_usb_probe(struct 
    725725 
    726726static int __exit tahvo_usb_remove(struct platform_device *pdev) 
    727727{ 
     728        struct tahvo_usb *tu = platform_get_drvdata(pdev); 
     729 
    728730        dev_dbg(&pdev->dev, "remove\n"); 
    729731 
    730732        tahvo_free_irq(TAHVO_INT_VBUSON); 
    static int __exit tahvo_usb_remove(struc 
    734736#ifdef CONFIG_USB_OTG 
    735737        device_remove_file(&pdev->dev, &dev_attr_otg_mode); 
    736738#endif 
     739 
     740        kfree(tu); 
    737741        tahvo_usb_device = NULL; 
    738742 
    739743        return 0; 
Note: See TracBrowser for help on using the repository browser.