Commit 0ab5c85d authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: ti-abb: Do not hardcode return value

Propagate the error value returned by the function instead.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 5c24d355
......@@ -522,7 +522,7 @@ static int ti_abb_init_table(struct device *dev, struct ti_abb *abb,
num_entries = of_property_count_u32_elems(dev->of_node, pname);
if (num_entries < 0) {
dev_err(dev, "No '%s' property?\n", pname);
return -ENODEV;
return num_entries;
}
if (!num_entries || (num_entries % num_values)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment