summaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-04-26 22:16:30 +0300
committerThierry Reding <treding@nvidia.com>2020-06-16 14:46:17 +0300
commit109be8b23fb2ec8e2d309325ee3b7a49eab63961 (patch)
tree758d9590daccf080a06d266f74a1f48a1f18fc0f /drivers/gpu/host1x
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff)
downloadlinux-109be8b23fb2ec8e2d309325ee3b7a49eab63961.tar.xz
gpu: host1x: Clean up debugfs in error handling path
host1x_debug_init() must be reverted in an error handling path. This is already fixed in the remove function since commit 44156eee91ba ("gpu: host1x: Clean up debugfs on removal") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/dev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c
index d24344e91922..3c0f151847ba 100644
--- a/drivers/gpu/host1x/dev.c
+++ b/drivers/gpu/host1x/dev.c
@@ -468,11 +468,12 @@ static int host1x_probe(struct platform_device *pdev)
err = host1x_register(host);
if (err < 0)
- goto deinit_intr;
+ goto deinit_debugfs;
return 0;
-deinit_intr:
+deinit_debugfs:
+ host1x_debug_deinit(host);
host1x_intr_deinit(host);
deinit_syncpt:
host1x_syncpt_deinit(host);