On Fri, Nov 07, 2014 at 11:52:04AM +0900, Beomho Seo wrote:

> +static int rt5033_regulator_dt_parse_data(struct device *dev)
> +{
> +     int ret;
> +     struct device_node *np;
> +
> +     np = of_get_child_by_name(dev->parent->of_node, "regulators");
> +     if  (!np) {
> +             dev_err(dev, "Failed to get child node for regulators\n");
> +             return -EINVAL;
> +     }
> +
> +     ret = of_regulator_match(dev, np, rt5033_regulator_matches,
> +                                     ARRAY_SIZE(rt5033_regulator_matches));
> +     if (ret < 0)
> +             return ret;

Please convert this to use regulators_node in the descriptor to match
the regulators, then you don't need any specific code.

Attachment: signature.asc
Description: Digital signature

Reply via email to