]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: exynos: Fix remove() function
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 10 Nov 2022 15:41:31 +0000 (16:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:22:59 +0000 (11:22 +0100)
commitdb8858d61f3b6731c27594abd3a9712938f3789d
treec41883f1af58396488068c0768c99e3c7279dbe7
parent04c4c186ddc185b4e1f7582010afb7d6eed330d3
usb: dwc3: exynos: Fix remove() function

commit 5afa281aa383823ce43b0884530f1283028c3e23 upstream.

The core DWC3 device node was not properly removed by the custom
dwc3_exynos_remove_child() function. Replace it with generic
of_platform_depopulate() which does that job right.

Fixes: 363ff3d00045 ("usb: dwc3: exynos: Use of_platform API to create dwc3 core pdev")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Cc: stable@vger.kernel.org
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20221110154131.2577-1-m.szyprowski@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-exynos.c