From: Samu Onkalo Date: Wed, 7 Oct 2009 23:32:35 +0000 (-0700) Subject: lis3lv02d_spi: module unload didn't remove sysfs entry X-Git-Tag: v2.6.32-rc4~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d82e23dcaeb083e520fd1ec87d014d0c4a31d79c;p=profile%2Fivi%2Fkernel-x86-ivi.git lis3lv02d_spi: module unload didn't remove sysfs entry 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 --- diff --git a/drivers/hwmon/lis3lv02d_spi.c b/drivers/hwmon/lis3lv02d_spi.c index ecd739534f6..82b16808a27 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