usb: dwc3: dwc3-qcom: Add missing platform_device_put() in dwc3_qcom_acpi_register_core
authorMiaoqian Lin <linmq006@gmail.com>
Fri, 31 Dec 2021 11:36:41 +0000 (11:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jan 2022 13:38:14 +0000 (14:38 +0100)
commitfa0ef93868a6062babe1144df2807a8b1d4924d2
tree2a69a03f6fbd326e0f511d46155b1e234b00239a
parent501e38a5531efbd77d5c73c0ba838a889bfc1d74
usb: dwc3: dwc3-qcom: Add missing platform_device_put() in dwc3_qcom_acpi_register_core

Add the missing platform_device_put() before return from
dwc3_qcom_acpi_register_core in the error handling case.

Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20211231113641.31474-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c