]> git.baikalelectronics.ru Git - uboot.git/commitdiff
misc: ls2_sfp: Fix regulator name
authorSean Anderson <sean.anderson@seco.com>
Fri, 27 Jan 2023 16:54:53 +0000 (11:54 -0500)
committerPeng Fan <peng.fan@nxp.com>
Wed, 1 Feb 2023 06:17:29 +0000 (14:17 +0800)
Unlike in Linux, -supply is not automatically appended to regulator
requests. Add it.

Fixes: efeed464ed ("arm: layerscape: Add sfp driver")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/misc/ls2_sfp.c

index dd104962c28209337bc53a512b4f9b2ba67a4358..2a81bc7de5f43d552941e43e3b066213a75e2bbc 100644 (file)
@@ -229,7 +229,7 @@ static int ls2_sfp_probe(struct udevice *dev)
                return -EINVAL;
        }
 
-       ret = device_get_supply_regulator(dev, "ta-sfp-prog", &priv->supply);
+       ret = device_get_supply_regulator(dev, "ta-sfp-prog-supply", &priv->supply);
        if (ret && ret != -ENODEV && ret != -ENOSYS) {
                dev_dbg(dev, "problem getting supply (err %d)\n", ret);
                return ret;