On Sun, Nov 07, 2021 at 10:16:25PM +0100, Christophe JAILLET wrote:
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
Untested. I hope that moving host1x_bo_cache_init() is just fine.
drivers/gpu/host1x/dev.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry