]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/ast: Remove unused dram_bus_width field
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 26 Aug 2025 06:49:21 +0000 (08:49 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 4 Sep 2025 10:29:39 +0000 (12:29 +0200)
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
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c

index e37a55295ed7161629f626b0cc9493b39c3f2225..403b86f00a542feb34665db433cf2fc3a1eec178 100644 (file)
@@ -172,7 +172,6 @@ struct ast_device {
        enum ast_config_mode config_mode;
        enum ast_chip chip;
 
-       uint32_t dram_bus_width;
        uint32_t dram_type;
        uint32_t mclk;
 
index 830f1c5fe893ea100f6e1e6c5644b8a679625d69..0b3fb6856db749bf442c29930659b707b8967c76 100644 (file)
@@ -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: