mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
fbdev: fsl-diu-fb: add missing device_remove_file()
Call device_remove_file() when driver remove. Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
26c36247a4
commit
86d16cd12e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user