diff options
author | Inki Dae <inki.dae@samsung.com> | 2023-05-19 08:55:05 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-28 10:14:21 +0200 |
commit | 4555a71526ce067113ebdadba11f87b44d51fdd0 (patch) | |
tree | cd8e2b7119a7cfda76ad202cb0239bb3430039ff | |
parent | 16091aa1d5f16acfe98c8fb05203710c17df8646 (diff) | |
download | linux-stable-4555a71526ce067113ebdadba11f87b44d51fdd0.tar.gz linux-stable-4555a71526ce067113ebdadba11f87b44d51fdd0.tar.bz2 linux-stable-4555a71526ce067113ebdadba11f87b44d51fdd0.zip |
drm/exynos: vidi: fix a wrong error return
[ Upstream commit 4a059559809fd1ddbf16f847c4d2237309c08edf ]
Fix a wrong error return by dropping an error return.
When vidi driver is remvoed, if ctx->raw_edid isn't same as fake_edid_info
then only what we have to is to free ctx->raw_edid so that driver removing
can work correctly - it's not an error case.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_vidi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index 53e03f8af3d5..f36d4df4d481 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c @@ -480,8 +480,6 @@ static int vidi_remove(struct platform_device *pdev) if (ctx->raw_edid != (struct edid *)fake_edid_info) { kfree(ctx->raw_edid); ctx->raw_edid = NULL; - - return -EINVAL; } component_del(&pdev->dev, &vidi_component_ops); |