git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regulator: of: regulator_of_get_init_data() missing of_node_get()
[sfrench/cifs-2.6.git]
/
drivers
/
regulator
/
of_regulator.c
diff --git
a/drivers/regulator/of_regulator.c
b/drivers/regulator/of_regulator.c
index 96bf75458da5101ada4321609635933ed715f338..9dd44dd4cdf6d7420ae233017f8e868195c30eff 100644
(file)
--- a/
drivers/regulator/of_regulator.c
+++ b/
drivers/regulator/of_regulator.c
@@
-333,7
+333,7
@@
struct regulator_init_data *regulator_of_get_init_data(struct device *dev,
search = of_get_child_by_name(dev->of_node,
desc->regulators_node);
else
- search =
dev->of_node
;
+ search =
of_node_get(dev->of_node)
;
if (!search) {
dev_dbg(dev, "Failed to find regulator container node '%s'\n",