USB: dwc3: qcom: fix ACPI platform device leak
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 17 Nov 2023 17:36:50 +0000 (18:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Nov 2023 12:14:36 +0000 (12:14 +0000)
commit9cf87666fc6e08572341fe08ecd909935998fbbd
treee95f8b890bb2a3152fe9936e4139e3d34b032941
parent9feefbf57d92e8ee293dad67585d351c7d0b6e37
USB: dwc3: qcom: fix ACPI platform device leak

Make sure to free the "urs" platform device, which is created for some
ACPI platforms, on probe errors and on driver unbind.

Compile-tested only.

Fixes: c25c210f590e ("usb: dwc3: qcom: add URS Host support for sdm845 ACPI boot")
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Acked-by: Andrew Halaney <ahalaney@redhat.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Link: https://lore.kernel.org/r/20231117173650.21161-4-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c