aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-06-14 16:13:06 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-14 16:36:23 -0400
commit1c4bf5ac6a16d9321b51e91acef481b090e5486b (patch)
treef7389ffe173a22975e625af9c9f54bbdd89b4a12 /drivers/usb
parent969a132723434f3723cc0606373785d19c1d2f05 (diff)
usb: musb: sunxi: Remove bogus "Frees glue" comment
The comment is wrong, glue is devm_kzalloc-ed mem attached to the "allwinner,sun4i-a10-musb" compatible platform-dev. Where as glue->musb_pdev is a newly created "musb-hdrc" platform-dev. Signed-off-by: Hans de Goede <hdegoede@redhat.com> [b-liu@ti.com: revise subject prefix] Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/sunxi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
index dc49041498a3..76500515dd8b 100644
--- a/drivers/usb/musb/sunxi.c
+++ b/drivers/usb/musb/sunxi.c
@@ -754,7 +754,7 @@ static int sunxi_musb_remove(struct platform_device *pdev)
754 struct sunxi_glue *glue = platform_get_drvdata(pdev); 754 struct sunxi_glue *glue = platform_get_drvdata(pdev);
755 struct platform_device *usb_phy = glue->usb_phy; 755 struct platform_device *usb_phy = glue->usb_phy;
756 756
757 platform_device_unregister(glue->musb_pdev); /* Frees glue ! */ 757 platform_device_unregister(glue->musb_pdev);
758 usb_phy_generic_unregister(usb_phy); 758 usb_phy_generic_unregister(usb_phy);
759 759
760 return 0; 760 return 0;