tegra: Extract common buffer object allocation code
authorThierry Reding <treding@nvidia.com>
Mon, 23 Apr 2018 08:58:09 +0000 (10:58 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 23 Feb 2022 14:38:21 +0000 (15:38 +0100)
commite44e7816037c54bae766df5b07af07685e81e336
treead6bc21267557924b807be97e2ec5b33cccc2bab
parentbec2a28e98f430f4a82b085b4d1c69a98988359f
tegra: Extract common buffer object allocation code

All of the buffer object allocation functions use the same boilerplate
code. Move that code into a separate function that can be reused.

Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
tegra/tegra.c