summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_main.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2020-07-16 14:53:53 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2020-07-20 09:16:23 +0200
commit03ba7e00f8054e19ffff4a03018f4e0b13a6f291 (patch)
treeb6b6a3fe3fbc8cb52656e3c02806f00c62ed4ed6 /drivers/gpu/drm/ast/ast_main.c
parentdrm/ast: Initialize DRAM type before posting GPU (diff)
downloadlinux-03ba7e00f8054e19ffff4a03018f4e0b13a6f291.tar.xz
linux-03ba7e00f8054e19ffff4a03018f4e0b13a6f291.zip
drm/ast: Use managed MM initialization
Cleaning up ast's MM code with ast_mm_fini() resets the write-combine flags on the VRAM I/O memory. Drop ast_mm_fini() in favor of an auto- release callback. Releasing the device also executes the callback. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200716125353.31512-7-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
-rw-r--r--drivers/gpu/drm/ast/ast_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c
index 87e5baded2a7..dd12b55d57a2 100644
--- a/drivers/gpu/drm/ast/ast_main.c
+++ b/drivers/gpu/drm/ast/ast_main.c
@@ -452,6 +452,5 @@ void ast_driver_unload(struct drm_device *dev)
ast_release_firmware(dev);
kfree(ast->dp501_fw_addr);
- ast_mm_fini(ast);
kfree(ast);
}