[02/14] drm/ast: Remove vga2_clone field

Sui Jingfeng suijingfeng at loongson.cn
Fri Jun 16 16:31:47 UTC 2023


On 2023/6/16 21:52, Thomas Zimmermann wrote:
> Remove the unused field vga2_clone from struct ast_device. No
> functional changes.

Yeah, it doesn't get used at all.

> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
Reviewed-by: Sui Jingfeng <suijingfeng at loongson.cn>
> ---
>   drivers/gpu/drm/ast/ast_drv.h  | 1 -
>   drivers/gpu/drm/ast/ast_main.c | 1 -
>   2 files changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h
> index 5498a6676f2e8..fc4760a67596f 100644
> --- a/drivers/gpu/drm/ast/ast_drv.h
> +++ b/drivers/gpu/drm/ast/ast_drv.h
> @@ -166,7 +166,6 @@ struct ast_device {
>   	void __iomem *dp501_fw_buf;
>   
>   	enum ast_chip chip;
> -	bool vga2_clone;
>   	uint32_t dram_bus_width;
>   	uint32_t dram_type;
>   	uint32_t mclk;
> diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c
> index 1f35438f614a7..da33cfc6366ec 100644
> --- a/drivers/gpu/drm/ast/ast_main.c
> +++ b/drivers/gpu/drm/ast/ast_main.c
> @@ -179,7 +179,6 @@ static int ast_detect_chip(struct drm_device *dev, bool *need_post)
>   			drm_info(dev, "AST 2100 detected\n");
>   			break;
>   		}
> -		ast->vga2_clone = false;
>   	} else {
>   		ast->chip = AST2000;
>   		drm_info(dev, "AST 2000 detected\n");

-- 
Jingfeng



More information about the dri-devel mailing list