diff options
author | Samu Onkalo <samu.p.onkalo@nokia.com> | 2009-10-08 01:32:35 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-08 16:36:40 +0200 |
commit | d82e23dcaeb083e520fd1ec87d014d0c4a31d79c (patch) | |
tree | f9df0c095a2bbbd6ea29817434398dd7c1436b7f | |
parent | mmc: sdio: don't require CISTPL_VERS_1 to contain 4 strings (diff) | |
download | linux-d82e23dcaeb083e520fd1ec87d014d0c4a31d79c.tar.xz linux-d82e23dcaeb083e520fd1ec87d014d0c4a31d79c.zip |
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 <samu.p.onkalo@nokia.com>
Acked-by: Daniel Mack <daniel@caiaq.de>
Cc: Éric Piel <eric.piel@tremplin-utc.net>
Cc: "Trisal, Kalhan" <kalhan.trisal@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/hwmon/lis3lv02d_spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |