gpu: host1x: Fix an error handling path in 'host1x_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Nov 2021 21:16:25 +0000 (22:16 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 25 Feb 2022 13:50:06 +0000 (14:50 +0100)
commitd65e338027e75e11e1b951178cb113b1bbeccca5
tree61c7a7e0a48a1a4434387575d0833eb8f9f19fc6
parentcea418863e968e086cf68b052da86b0707690ebc
gpu: host1x: Fix an error handling path in 'host1x_probe()'

Add the missing 'host1x_bo_cache_destroy()' call in the error handling
path of the probe, as already done in the remove function.

In order to simplify the error handling, move the 'host1x_bo_cache_init()'
call after all the devm_ function.

Fixes: e3166698a8a0 ("drm/tegra: Implement buffer object cache")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.c