]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 13:00:29 +0000 (14:00 +0100)
commit47bf722585b7dd0db04900d98517b0da4e2ba2ea
tree1922a9bb96f880e688d1372ec8d861d015a4f30f
parent45a078edda4c44bf543ecaa04f9d94a4ef66fde9
usb: dwc3: exynos: Fix remove() function

commit e0481e5b3cc12ea7ccf4552d41518c89d3509004 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: adcf20dcd262 ("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>
(cherry picked from commit 1d91c648874e7254006c4bae71e0d4ebd62c878f)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
drivers/usb/dwc3/dwc3-exynos.c