Commit 109be8b2 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Thierry Reding

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 44156eee
("gpu: host1x: Clean up debugfs on removal")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent b3a9e3b9
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment