]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/exynos: gsc: add missed component_del
authorChuhong Yuan <hslester96@gmail.com>
Mon, 18 Nov 2019 11:39:55 +0000 (19:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:17:21 +0000 (12:17 +0100)
[ Upstream commit 84c92365b20a44c363b95390ea00dfbdd786f031 ]

The driver forgets to call component_del in remove to match component_add
in probe.
Add the missed call to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Inki Dae <inki.dae@samsung.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/exynos/exynos_drm_gsc.c

index 7ba414b52faa940595a028db7fa3e959bc7a58cd..d71188b982cb858061a51c8e41f0cc027df58138 100644 (file)
@@ -1292,6 +1292,7 @@ static int gsc_remove(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
 
+       component_del(dev, &gsc_component_ops);
        pm_runtime_dont_use_autosuspend(dev);
        pm_runtime_disable(dev);