]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc794ab1fcade163233826ae7ea2de82e718a31fd
tree48400ce7cfba6a9559429faeb7c9432cd3c0a52f
parent419f9518df376925e147ede2fee26623a234a79e
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