[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1280286373.19065.2.camel@mola>
Date: Wed, 28 Jul 2010 11:06:13 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: Richard Purdie <rpurdie@...ys.net>,
Andrew Morton <akpm@...ux-foundation.org>,
InKi Dae <inki.dae@...sung.com>
Subject: [PATCH 1/2] s6e63m0: unregister backlight device and remove sysfs
attribute file in s6e63m0_remove
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 <axel.lin@...il.com>
---
drivers/video/backlight/s6e63m0.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c
index a3128c9..b27ccf9 100644
--- 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);
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists