lkml.org 
[lkml]   [2010]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH RESEND] regulator: tps6507x - add missing platform_set_drvdata in tps6507x_pmic_probe
From
Date
We should call platform_set_drvdata() before calling platform_get_drvdata().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
Per Mark's comment, this resend remove platform_set_drvdata(pdev, NULL)
in tps6507x_pmic_remove.
drivers/regulator/tps6507x-regulator.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index 8152d65..c239f42 100644
--- a/drivers/regulator/tps6507x-regulator.c
+++ b/drivers/regulator/tps6507x-regulator.c
@@ -614,6 +614,7 @@ int tps6507x_pmic_probe(struct platform_device *pdev)
}

tps6507x_dev->pmic = tps;
+ platform_set_drvdata(pdev, tps6507x_dev);

return 0;

--
1.5.4.3




\
 
 \ /
  Last update: 2010-08-09 09:53    [W:0.040 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site