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: v5.10.238~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c65d9250fd5aadd99cac34d454539c93be27a73;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 5d564e8670c52..6f2606932867d 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -1830,6 +1830,7 @@ static int 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);