regulator:pfuze100: fix build warning and correct the binding doc
authorRobin Gong <b38343@freescale.com>
Fri, 26 Jul 2013 02:27:18 +0000 (10:27 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 26 Jul 2013 18:06:48 +0000 (19:06 +0100)
fix building warning and correct the binding doc

Signed-off-by: Robin Gong <b38343@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/regulator/pfuze100.txt
drivers/regulator/pfuze100-regulator.c

index 22e1a48f7e83387353d4ed144776c95698270e98..fc989b2e8057b3ced0b306ac53befb4a3edc1f81 100644 (file)
@@ -3,6 +3,8 @@ PFUZE100 family of regulators
 Required properties:
 - compatible: "fsl,pfuze100"
 - reg: I2C slave address
+
+Required child node:
 - regulators: This is the list of child nodes that specify the regulator
   initialization data for defined regulators. Please refer to below doc
   Documentation/devicetree/bindings/regulator/regulator.txt.
index fcc7cd0d25cc22bf656d472c4ea32e2329571fc4..e2f9dcf3eb219c2f5e193976eb4145cf699c5e45 100644 (file)
@@ -295,7 +295,7 @@ static inline struct device_node *match_of_node(int index)
 #else
 static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)
 {
-       return NULL;
+       return 0;
 }
 
 static inline struct regulator_init_data *match_init_data(int index)