Skip to content

Commit 1c4bf5a

Browse files
jwrdegoedegregkh
authored andcommitted
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 <[email protected]> [[email protected]: revise subject prefix] Signed-off-by: Bin Liu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 969a132 commit 1c4bf5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/musb/sunxi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ static int sunxi_musb_remove(struct platform_device *pdev)
754754
struct sunxi_glue *glue = platform_get_drvdata(pdev);
755755
struct platform_device *usb_phy = glue->usb_phy;
756756

757-
platform_device_unregister(glue->musb_pdev); /* Frees glue ! */
757+
platform_device_unregister(glue->musb_pdev);
758758
usb_phy_generic_unregister(usb_phy);
759759

760760
return 0;

0 commit comments

Comments
 (0)