summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ast/ast_main.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2025-08-26 09:49:21 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2025-09-04 13:29:39 +0300
commitdc2a40f44e5fb815c3b4506debfe73ada4ea1640 (patch)
tree1523b5bfbb2824ae37d347f4c827d38a9f7409cd /drivers/gpu/drm/ast/ast_main.c
parenta5db45bfe9469e85e416035367ead7e0b94c642c (diff)
downloadlinux-dc2a40f44e5fb815c3b4506debfe73ada4ea1640.tar.xz
drm/ast: Remove unused dram_bus_width field
The DRAM bus width is not necessary for the driver. Remove it. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://lore.kernel.org/r/20250826065032.344412-3-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
-rw-r--r--drivers/gpu/drm/ast/ast_main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c
index 830f1c5fe893..0b3fb6856db7 100644
--- a/drivers/gpu/drm/ast/ast_main.c
+++ b/drivers/gpu/drm/ast/ast_main.c
@@ -242,7 +242,6 @@ static int ast_get_dram_info(struct ast_device *ast)
break;
case ast_use_defaults:
default:
- ast->dram_bus_width = 16;
ast->dram_type = AST_DRAM_1Gx16;
if (IS_AST_GEN6(ast))
ast->mclk = 800;
@@ -251,11 +250,6 @@ static int ast_get_dram_info(struct ast_device *ast)
return 0;
}
- if (mcr_cfg & 0x40)
- ast->dram_bus_width = 16;
- else
- ast->dram_bus_width = 32;
-
if (IS_AST_GEN6(ast)) {
switch (mcr_cfg & 0x03) {
case 0: