Skip to contentSkip to conversation

backlight: ams369fg06: unregister backlight device when unload the module

PATCH New Axel Lin 1 participant 1 message Jul 4, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 backlight: ams369fg06: unregister backlight device when unload the module

---
 drivers/video/backlight/ams369fg06.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/backlight/ams369fg06.c +1 -0
index d1d8237..6462d05 100644
@@ -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