projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dbdf88
)
drivers/video/backlight/s6e63m0.c: unregister backlight device and remove sysfs attri...
author
Axel Lin
<
[email protected]
>
Thu, 11 Nov 2010 22:05:26 +0000
(14:05 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 12 Nov 2010 15:55:33 +0000
(07:55 -0800)
s6e63m0_probe() registered backlight device and create sysfs attribute
files, thus s6e63m0_remove() should unregister backlight device and remove
sysfs attribute files.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Richard Purdie <
[email protected]
>
Cc: InKi Dae <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/backlight/s6e63m0.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/s6e63m0.c
b/drivers/video/backlight/s6e63m0.c
index 2d8328691df4159fb697937be3b29c8a0a34bd62..78bcdb176691a5903c5fda2c1299e09ca0e61146 100644
(file)
--- a/
drivers/video/backlight/s6e63m0.c
+++ b/
drivers/video/backlight/s6e63m0.c
@@
-829,6
+829,9
@@
static int __devexit s6e63m0_remove(struct spi_device *spi)
struct s6e63m0 *lcd = dev_get_drvdata(&spi->dev);
s6e63m0_power(lcd, FB_BLANK_POWERDOWN);
+ device_remove_file(&spi->dev, &dev_attr_gamma_table);
+ device_remove_file(&spi->dev, &dev_attr_gamma_mode);
+ backlight_device_unregister(lcd->bd);
lcd_device_unregister(lcd->ld);
kfree(lcd);