1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
--- a/drivers/cbus/tahvo-usb.c +++ b/drivers/cbus/tahvo-usb.c @@ -725,6 +725,8 @@ static int __init tahvo_usb_probe(struct static int __exit tahvo_usb_remove(struct platform_device *pdev) { + struct tahvo_usb *tu = platform_get_drvdata(pdev); + dev_dbg(&pdev->dev, "remove\n"); tahvo_free_irq(TAHVO_INT_VBUSON); @@ -734,6 +736,8 @@ static int __exit tahvo_usb_remove(struc #ifdef CONFIG_USB_OTG device_remove_file(&pdev->dev, &dev_attr_otg_mode); #endif + + kfree(tu); tahvo_usb_device = NULL; return 0; upstream' title='openwrt/upstream Git repository'/>