* [PATCH 1/3] drivers/power: add missing kfree(di) in ds2760_battery_remove()
@ 2010-09-27 7:07 Axel Lin
2010-09-27 7:08 ` [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in jz_battery_remove() Axel Lin
2010-09-27 7:10 ` [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove() Axel Lin
0 siblings, 2 replies; 6+ messages in thread
From: Axel Lin @ 2010-09-27 7:07 UTC (permalink / raw)
To: linux-kernel; +Cc: Anton Vorontsov
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/power/ds2760_battery.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c
index 4d3b272..b3c01c1 100644
--- a/drivers/power/ds2760_battery.c
+++ b/drivers/power/ds2760_battery.c
@@ -586,6 +586,7 @@ static int ds2760_battery_remove(struct platform_device *pdev)
&di->set_charged_work);
destroy_workqueue(di->monitor_wqueue);
power_supply_unregister(&di->bat);
+ kfree(di);
return 0;
}
--
1.7.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in jz_battery_remove()
2010-09-27 7:07 [PATCH 1/3] drivers/power: add missing kfree(di) in ds2760_battery_remove() Axel Lin
@ 2010-09-27 7:08 ` Axel Lin
2010-09-28 11:40 ` Lars-Peter Clausen
2010-09-27 7:10 ` [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove() Axel Lin
1 sibling, 1 reply; 6+ messages in thread
From: Axel Lin @ 2010-09-27 7:08 UTC (permalink / raw)
To: linux-kernel; +Cc: Anton Vorontsov, Lars-Peter Clausen
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/power/jz4740-battery.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c
index 20c4b95..a8108a7 100644
--- a/drivers/power/jz4740-battery.c
+++ b/drivers/power/jz4740-battery.c
@@ -383,6 +383,7 @@ static int __devexit jz_battery_remove(struct platform_device *pdev)
iounmap(jz_battery->base);
release_mem_region(jz_battery->mem->start, resource_size(jz_battery->mem));
+ kfree(jz_battery);
return 0;
}
--
1.7.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove()
2010-09-27 7:07 [PATCH 1/3] drivers/power: add missing kfree(di) in ds2760_battery_remove() Axel Lin
2010-09-27 7:08 ` [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in jz_battery_remove() Axel Lin
@ 2010-09-27 7:10 ` Axel Lin
2010-09-27 15:05 ` Mark Brown
1 sibling, 1 reply; 6+ messages in thread
From: Axel Lin @ 2010-09-27 7:10 UTC (permalink / raw)
To: linux-kernel; +Cc: Anton Vorontsov, Mark Brown
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/power/wm831x_power.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/power/wm831x_power.c b/drivers/power/wm831x_power.c
index a57a941..ddf8cf5 100644
--- a/drivers/power/wm831x_power.c
+++ b/drivers/power/wm831x_power.c
@@ -611,6 +611,7 @@ static __devexit int wm831x_power_remove(struct platform_device *pdev)
power_supply_unregister(&wm831x_power->battery);
power_supply_unregister(&wm831x_power->wall);
power_supply_unregister(&wm831x_power->usb);
+ kfree(wm831x_power);
return 0;
}
--
1.7.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove()
2010-09-27 7:10 ` [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove() Axel Lin
@ 2010-09-27 15:05 ` Mark Brown
2010-09-28 11:18 ` Anton Vorontsov
0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2010-09-27 15:05 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Anton Vorontsov
On Mon, Sep 27, 2010 at 03:10:11PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove()
2010-09-27 15:05 ` Mark Brown
@ 2010-09-28 11:18 ` Anton Vorontsov
0 siblings, 0 replies; 6+ messages in thread
From: Anton Vorontsov @ 2010-09-28 11:18 UTC (permalink / raw)
To: Mark Brown; +Cc: Axel Lin, linux-kernel
On Mon, Sep 27, 2010 at 08:05:07AM -0700, Mark Brown wrote:
> On Mon, Sep 27, 2010 at 03:10:11PM +0800, Axel Lin wrote:
> > Signed-off-by: Axel Lin <axel.lin@gmail.com>
>
> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Thanks! Applied */3.
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in jz_battery_remove()
2010-09-27 7:08 ` [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in jz_battery_remove() Axel Lin
@ 2010-09-28 11:40 ` Lars-Peter Clausen
0 siblings, 0 replies; 6+ messages in thread
From: Lars-Peter Clausen @ 2010-09-28 11:40 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Anton Vorontsov
Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-By: Lars-Peter Clausen <lars@metafoo.de>
> ---
> drivers/power/jz4740-battery.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c
> index 20c4b95..a8108a7 100644
> --- a/drivers/power/jz4740-battery.c
> +++ b/drivers/power/jz4740-battery.c
> @@ -383,6 +383,7 @@ static int __devexit jz_battery_remove(struct platform_device *pdev)
>
> iounmap(jz_battery->base);
> release_mem_region(jz_battery->mem->start, resource_size(jz_battery->mem));
> + kfree(jz_battery);
>
> return 0;
> }
Thanks
- Lars
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-09-28 11:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 7:07 [PATCH 1/3] drivers/power: add missing kfree(di) in ds2760_battery_remove() Axel Lin
2010-09-27 7:08 ` [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in jz_battery_remove() Axel Lin
2010-09-28 11:40 ` Lars-Peter Clausen
2010-09-27 7:10 ` [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove() Axel Lin
2010-09-27 15:05 ` Mark Brown
2010-09-28 11:18 ` Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox