fix for lantiq (danube) usb
Luca Olivetti
luca at ventoso.org
Fri Jul 3 16:05:01 EDT 2020
El 3/7/20 a les 21:31, Luca Olivetti ha escrit:
> I suppose it's the call to devm_regulator_get_optional, which should
> lead to regulator/core.c
>
> static struct regulator_dev *regulator_dev_lookup(struct device *dev,
> const char *supply)
> {
> struct regulator_dev *r = NULL;
> struct device_node *node;
> struct regulator_map *map;
> const char *devname = NULL;
>
> regulator_supply_alias(&dev, &supply);
>
> /* first do a dt based lookup */
> if (dev && dev->of_node) {
> node = of_get_regulator(dev, supply);
> if (node) {
> r = of_find_regulator_by_node(node);
> if (r)
> return r;
>
> /*
> * We have a node, but there is no device.
> * assume it has not registered yet.
> */
I added a printk here and it's exactly as I supposed.
Now what?
> return ERR_PTR(-EPROBE_DEFER);
> }
> }
>
Bye
--
Luca
More information about the openwrt-devel
mailing list