From: Shixiong Ou Date: Mon, 10 Mar 2025 01:54:31 +0000 (+0800) Subject: fbdev: fsl-diu-fb: add missing device_remove_file() X-Git-Tag: v6.6.93~396 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f370b7e6fa03ad1fc9f9a0c49d37783a32c4b58;p=thirdparty%2Fkernel%2Fstable.git fbdev: fsl-diu-fb: add missing device_remove_file() [ Upstream commit 86d16cd12efa547ed43d16ba7a782c1251c80ea8 ] Call device_remove_file() when driver remove. Signed-off-by: Shixiong Ou Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index 0bced82fa4940..8cf1268a4e554 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -1827,6 +1827,7 @@ static void fsl_diu_remove(struct platform_device *pdev) int i; data = dev_get_drvdata(&pdev->dev); + device_remove_file(&pdev->dev, &data->dev_attr); disable_lcdc(&data->fsl_diu_info[0]); free_irq(data->irq, data->diu_reg);