usb: chipidea: Fix oops when removing the ci_hdrc module
Changes
1 files changed · +0 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/usb/chipidea/core.c | modified | +0 | −1 | View file |
drivers/usb/chipidea/core.c
View filediff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index 3df5005..9bdc6bd 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -742,7 +742,6 @@ static int ci_hdrc_remove(struct platform_device *pdev)
ci_role_destroy(ci);
ci_hdrc_enter_lpm(ci, true);
usb_phy_shutdown(ci->transceiver);
- kfree(ci->hw_bank.regmap);
return 0;
}