]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Clean up debugfs on removal
authorThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2019 12:37:10 +0000 (13:37 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 14:04:34 +0000 (15:04 +0100)
commitaa01683238a7e0cd8dd19fc63412c7c22c8570be
tree7699c137788c247c0c6f53967a62ffdf797f51ba
parent53f1a9249e7a3b67f077483e46e360ab9ef62c25
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>
drivers/gpu/host1x/dev.c