projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ef065
)
regulator: da9052: Use for_each_child_of_node() macro
author
Axel Lin
<axel.lin@gmail.com>
Sat, 7 Jul 2012 01:46:45 +0000
(09:46 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 9 Jul 2012 18:38:58 +0000
(19:38 +0100)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/da9052-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/da9052-regulator.c
b/drivers/regulator/da9052-regulator.c
index 88976d8d44edd1af9d906ca8e2acea259ab46a37..5f8f71acb6c09cd5fa152335d6e37e06e237955f 100644
(file)
--- a/
drivers/regulator/da9052-regulator.c
+++ b/
drivers/regulator/da9052-regulator.c
@@
-405,8
+405,7
@@
static int __devinit da9052_regulator_probe(struct platform_device *pdev)
if (!nproot)
return -ENODEV;
- for (np = of_get_next_child(nproot, NULL); np;
- np = of_get_next_child(nproot, np)) {
+ for_each_child_of_node(nproot, np) {
if (!of_node_cmp(np->name,
regulator->info->reg_desc.name)) {
config.init_data = of_get_regulator_init_data(