backlight: ams369fg06: unregister backlight device when unload the module
Subsystems (2)
PATCH 1/1 backlight: ams369fg06: unregister backlight device when unload the module
Signed-off-by Axel Lin <[email protected]>
--- drivers/video/backlight/ams369fg06.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/backlight/ams369fg06.c +1 -0
@@ -553,6 +553,7 @@ static int __devexit ams369fg06_remove(struct spi_device *spi)struct ams369fg06 *lcd =dev_get_drvdata (&spi->dev);ams369fg06_power (lcd,FB_BLANK_POWERDOWN ); +backlight_device_unregister (lcd->bd);lcd_device_unregister (lcd->ld);kfree (lcd);
Signature · 1 line
1.7.4.1