All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] power_supply: da9052-battery: Add missing platform_set_drvdata
@ 2012-01-11  7:43 Axel Lin
  2012-01-11  7:44 ` [PATCH 2/3] power_supply: da9052-battery: Fix a memory leak when unload the module Axel Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Axel Lin @ 2012-01-11  7:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ashish Jangam, Anton Vorontsov, David Dajun Chen

Add missing platform_set_drvdata in da9052_bat_probe.
Otherwise, calling platform_get_drvdata in da9052_bat_remove returns NULL.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/power/da9052-battery.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/power/da9052-battery.c b/drivers/power/da9052-battery.c
index e8ea47a..07d5b36 100644
--- a/drivers/power/da9052-battery.c
+++ b/drivers/power/da9052-battery.c
@@ -612,6 +612,7 @@ static s32 __devinit da9052_bat_probe(struct platform_device *pdev)
 	 if (ret)
 		goto err;
 
+	platform_set_drvdata(pdev, bat);
 	return 0;
 
 err:
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-15 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11  7:43 [PATCH 1/3] power_supply: da9052-battery: Add missing platform_set_drvdata Axel Lin
2012-01-11  7:44 ` [PATCH 2/3] power_supply: da9052-battery: Fix a memory leak when unload the module Axel Lin
2012-01-11  7:45 ` [PATCH 3/3] power_supply: da9052-battery: Convert to use module_platform_driver Axel Lin
2012-03-15 16:52 ` [PATCH 1/3] power_supply: da9052-battery: Add missing platform_set_drvdata Anton Vorontsov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.