* [PATCH 0/1] LIS3LV02D_SPI incomplete module unloading
@ 2009-10-01 12:25 Samu Onkalo
2009-10-01 12:25 ` [PATCH 1/1] LIS3LV02D_SPI: Module unload didn't remove sysfs entry Samu Onkalo
0 siblings, 1 reply; 3+ messages in thread
From: Samu Onkalo @ 2009-10-01 12:25 UTC (permalink / raw)
To: akpm, daniel; +Cc: eric.piel, linux-kernel, Samu Onkalo
While implementing I2C driver for LIS3LV02D, following bug was found
from corresponding SPI implementation. This is not tested with real
HW where LIS3 is connected via SPI since I don't have one.
However, module loading and unloading is tested with dummy SPI configuration.
Patch created to top of 2.6.32-RC1
Samu Onkalo (1):
LIS3LV02D_SPI: Module unload didn't remove sysfs entry
drivers/hwmon/lis3lv02d_spi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] LIS3LV02D_SPI: Module unload didn't remove sysfs entry
2009-10-01 12:25 [PATCH 0/1] LIS3LV02D_SPI incomplete module unloading Samu Onkalo
@ 2009-10-01 12:25 ` Samu Onkalo
2009-10-02 8:01 ` Éric Piel
0 siblings, 1 reply; 3+ messages in thread
From: Samu Onkalo @ 2009-10-01 12:25 UTC (permalink / raw)
To: akpm, daniel; +Cc: eric.piel, linux-kernel, Samu Onkalo
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>
---
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 ecd7395..82b1680 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
--
1.5.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] LIS3LV02D_SPI: Module unload didn't remove sysfs entry
2009-10-01 12:25 ` [PATCH 1/1] LIS3LV02D_SPI: Module unload didn't remove sysfs entry Samu Onkalo
@ 2009-10-02 8:01 ` Éric Piel
0 siblings, 0 replies; 3+ messages in thread
From: Éric Piel @ 2009-10-02 8:01 UTC (permalink / raw)
To: Samu Onkalo; +Cc: akpm, daniel, linux-kernel
Op 01-10-09 14:25, Samu Onkalo schreef:
> 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>
Acked-by: Éric Piel <eric.piel@tremplin-utc.net>
> ---
> 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 ecd7395..82b1680 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-02 8:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 12:25 [PATCH 0/1] LIS3LV02D_SPI incomplete module unloading Samu Onkalo
2009-10-01 12:25 ` [PATCH 1/1] LIS3LV02D_SPI: Module unload didn't remove sysfs entry Samu Onkalo
2009-10-02 8:01 ` Éric Piel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox