mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04: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:
parent
f60ba8bd27
commit
e9eb6288a4
1 changed files with 1 additions and 0 deletions
|
|
@ -1828,6 +1828,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue