OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c60823
)
regulator: Add missing platform_set_drvdata in tps6105x_regulator_probe
author
Axel Lin
<axel.lin@gmail.com>
Tue, 29 Mar 2011 09:54:58 +0000
(17:54 +0800)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:36 +0000
(10:34 +0100)
Otherwise, calling platform_get_drvdata in tps6105x_regulator_remove
returns NULL.
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/tps6105x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps6105x-regulator.c
b/drivers/regulator/tps6105x-regulator.c
index
a4d7f45
..
1011873
100644
(file)
--- a/
drivers/regulator/tps6105x-regulator.c
+++ b/
drivers/regulator/tps6105x-regulator.c
@@
-158,6
+158,7
@@
static int __devinit tps6105x_regulator_probe(struct platform_device *pdev)
"failed to register regulator\n");
return ret;
}
+ platform_set_drvdata(pdev, tps6105x);
return 0;
}