OSDN Git Service

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>
Tue, 1 Mar 2022 10:13:03 +0000 (11:13 +0100)
commite5d5db1a79a5929b9ced99472f9a748a243d6a69
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: 1f39b1dfa53c ("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