drm/vc4: kms: Add functions to create the state objects

In order to make the vc4_kms_load code and error path a bit easier to
read and extend, add functions to create state objects, and use managed
actions to cleanup if needed.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20201029190104.2181730-6-maxime@cerno.tech
This commit is contained in:
Maxime Ripard 2020-10-29 20:01:04 +01:00
commit dcda7c28bf
No known key found for this signature in database
GPG key ID: E3EF0D6F671851C5
2 changed files with 57 additions and 24 deletions