drm/ast: Replace driver load/unload functions with device create/destroy
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 30 Jul 2020 13:52:00 +0000 (15:52 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 3 Aug 2020 07:04:01 +0000 (09:04 +0200)
commitfbe01716ed4a93ff90a289c2b75313319bf08573
tree48400ce7cfba6a9559429faeb7c9432cd3c0a52f
parentd50ace1e72f05708cc5dbc89b9bbb9873f150092
drm/ast: Replace driver load/unload functions with device create/destroy

The ast driver's load and unload functions are left-overs from when
struct drm_driver.load/unload was still in use. The PCI probe helper
allocated the DRM device and ran load to initialize it.

This patch replaces this code with device create and destroy. The
main difference is that the device's create function allocates the
DRM device and ast structures in the same place. This will be required
for switching ast to managed allocations.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200730135206.30239-4-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c