mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d8aea4921f
commit
af6e4ccb08
@@ -1829,6 +1829,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);
|
||||
|
||||
Reference in New Issue
Block a user