projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7973c3
)
regulator: tps6507x - add missing platform_set_drvdata in tps6507x_pmic_probe
author
Axel Lin
<axel.lin@gmail.com>
Mon, 9 Aug 2010 07:51:23 +0000
(15:51 +0800)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Wed, 11 Aug 2010 10:38:03 +0000
(11:38 +0100)
We should call platform_set_drvdata() before calling platform_get_drvdata().
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/tps6507x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps6507x-regulator.c
b/drivers/regulator/tps6507x-regulator.c
index
8152d65
..
c239f42
100644
(file)
--- 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;