usb: dwc3: qcom: Release the correct resources in dwc3_qcom_remove()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 4 Jun 2023 15:04:37 +0000 (17:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2023 09:56:31 +0000 (11:56 +0200)
commit8fd95da2cfb5046c4bb5a3cdc9eb7963ba8b10dd
treea24d29beef1690950d7e4323ca58e777cf009000
parent6b394dbb6469e438c537f84899402ffdb8fcbdbd
usb: dwc3: qcom: Release the correct resources in dwc3_qcom_remove()

In the probe, some resources are allocated with
dwc3_qcom_of_register_core() or dwc3_qcom_acpi_register_core(). The
corresponding resources are already coorectly freed in the error handling
path of the probe, but not in the remove function.

Fix it.

Fixes: 2bc02355f8ba ("usb: dwc3: qcom: Add support for booting with ACPI")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Message-ID: <c0215a84cdf18fb3514c81842783ec53cf149deb.1685891059.git.christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c