drm/vc4: hdmi: Switch to DRM-managed kfree to build regsets

The current code to build the registers set later exposed in debugfs for
the HDMI controller relies on traditional allocations, that are later
free'd as part of the driver unbind hook.

Since krealloc doesn't have a DRM-managed equivalent, let's add an action
to free the buffer later on.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-45-maxime@cerno.tech
This commit is contained in:
Maxime Ripard 2022-07-11 19:39:14 +02:00
commit a3dbb1c016
No known key found for this signature in database
GPG key ID: E3EF0D6F671851C5
2 changed files with 31 additions and 18 deletions