From d82e23dcaeb083e520fd1ec87d014d0c4a31d79c Mon Sep 17 00:00:00 2001 From: Samu Onkalo Date: Wed, 7 Oct 2009 16:32:35 -0700 Subject: [PATCH] lis3lv02d_spi: module unload didn't remove sysfs entry MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In module unload, lis3lv02d core driver sysfs clean up was not called. Signed-off-by: Samu Onkalo Acked-by: Daniel Mack Cc: Éric Piel Cc: "Trisal, Kalhan" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/hwmon/lis3lv02d_spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/lis3lv02d_spi.c b/drivers/hwmon/lis3lv02d_spi.c index ecd739534f6a..82b16808a274 100644 --- a/drivers/hwmon/lis3lv02d_spi.c +++ b/drivers/hwmon/lis3lv02d_spi.c @@ -83,7 +83,8 @@ static int __devexit lis302dl_spi_remove(struct spi_device *spi) struct lis3lv02d *lis3 = spi_get_drvdata(spi); lis3lv02d_joystick_disable(); lis3lv02d_poweroff(lis3); - return 0; + + return lis3lv02d_remove_fs(&lis3_dev); } #ifdef CONFIG_PM -- 2.20.1