Re: [PATH] drm/loongson: fix vga client not unregist
From: Huacai Chen
Date: Thu May 21 2026 - 22:53:59 EST
Hi, Lu,
Your subject line is incomplete.
Huacai
On Tue, May 19, 2026 at 3:40 PM <yaolu@xxxxxxxxxx> wrote:
>
> From: Lu Yao <yaolu@xxxxxxxxxx>
>
> Need set vgadev->set_decode to NULL when pci_remove.
>
> Signed-off-by: Lu Yao <yaolu@xxxxxxxxxx>
> ---
> drivers/gpu/drm/loongson/lsdc_drv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/loongson/lsdc_drv.c b/drivers/gpu/drm/loongson/lsdc_drv.c
> index 6cd21480c979..79bb61278aa7 100644
> --- a/drivers/gpu/drm/loongson/lsdc_drv.c
> +++ b/drivers/gpu/drm/loongson/lsdc_drv.c
> @@ -327,6 +327,7 @@ static void lsdc_pci_remove(struct pci_dev *pdev)
> struct drm_device *ddev = pci_get_drvdata(pdev);
>
> drm_dev_unregister(ddev);
> + vga_client_unregister(pdev);
> drm_atomic_helper_shutdown(ddev);
> }
>
> --
> 2.25.1
>