aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_post.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2020-07-30 15:52:03 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2020-08-03 09:04:28 +0200
commite0f5a738cfe572bed3deb08fab0b5273b9535b74 (patch)
tree32dd34e08f829c4b08d4686b62f9925a6edc8765 /drivers/gpu/drm/ast/ast_post.c
parentdrm/ast: Don't use ast->dev if dev is available (diff)
downloadlinux-dev-e0f5a738cfe572bed3deb08fab0b5273b9535b74.tar.xz
linux-dev-e0f5a738cfe572bed3deb08fab0b5273b9535b74.zip
drm/ast: Embed struct drm_device in struct ast_private
Turns struct ast_private into a subclass of struct drm_device by embedding the latter. This allows for using DRM's managed device allocation. The use of struct drm_device.dev_private is deprecated. The patch converts the last remaining users to to_ast_private(). 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-7-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/ast/ast_post.c')
-rw-r--r--drivers/gpu/drm/ast/ast_post.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c
index b1d42a639ece..8902c2f84bf9 100644
--- a/drivers/gpu/drm/ast/ast_post.c
+++ b/drivers/gpu/drm/ast/ast_post.c
@@ -365,8 +365,8 @@ static void ast_init_dram_reg(struct drm_device *dev)
void ast_post_gpu(struct drm_device *dev)
{
- u32 reg;
struct ast_private *ast = to_ast_private(dev);
+ u32 reg;
pci_read_config_dword(dev->pdev, 0x04, &reg);
reg |= 0x3;