summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorShixiong Ou <oushixiong@kylinos.cn>2025-03-10 09:54:31 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-04 14:41:55 +0200
commit7f370b7e6fa03ad1fc9f9a0c49d37783a32c4b58 (patch)
tree0e5e61101e7544b4f937e46944176f591a1b7465 /drivers/video
parentbbf3bb6ddea47f6270224308eaa9d8b8ff72062f (diff)
downloadlinux-7f370b7e6fa03ad1fc9f9a0c49d37783a32c4b58.tar.gz
linux-7f370b7e6fa03ad1fc9f9a0c49d37783a32c4b58.tar.bz2
linux-7f370b7e6fa03ad1fc9f9a0c49d37783a32c4b58.zip
fbdev: fsl-diu-fb: add missing device_remove_file()
[ Upstream commit 86d16cd12efa547ed43d16ba7a782c1251c80ea8 ] Call device_remove_file() when driver remove. Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/fsl-diu-fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c
index 0bced82fa494..8cf1268a4e55 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);