aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-10-28 13:37:10 +0100
committerThierry Reding <treding@nvidia.com>2019-10-29 15:04:34 +0100
commit44156eee91ba6f027afbfd6a39016c0e7e31c8e9 (patch)
tree7699c137788c247c0c6f53967a62ffdf797f51ba /drivers/gpu/host1x
parentgpu: host1x: Overhaul host1x_bo_{pin,unpin}() API (diff)
downloadlinux-dev-44156eee91ba6f027afbfd6a39016c0e7e31c8e9.tar.xz
linux-dev-44156eee91ba6f027afbfd6a39016c0e7e31c8e9.zip
gpu: host1x: Clean up debugfs on removal
The debugfs files created for host1x are never removed, causing these files to be left dangling in debugfs. This results in a crash when any of these files are accessed after the host1x driver has been removed, as well as a failure to create the debugfs entries when they are added again on driver probe. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c
index 452ee5d64021..f30b8447a319 100644
--- a/drivers/gpu/host1x/dev.c
+++ b/drivers/gpu/host1x/dev.c
@@ -402,6 +402,7 @@ static int host1x_remove(struct platform_device *pdev)
struct host1x *host = platform_get_drvdata(pdev);
host1x_unregister(host);
+ host1x_debug_deinit(host);
host1x_intr_deinit(host);
host1x_syncpt_deinit(host);
reset_control_assert(host->rst);