mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-31 00:01:10 +02:00
95ef6e1d42
Thank you Peter Wagner for the patch. I refreshed the kernel patches and added the md5sum of the kernel. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26905 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
524 B
Diff
21 lines
524 B
Diff
--- 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;
|