misc: ls2_sfp: Fix regulator name

Unlike in Linux, -supply is not automatically appended to regulator
requests. Add it.

Fixes: 2645bc0e12 ("arm: layerscape: Add sfp driver")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Sean Anderson
2023-02-01 14:17:29 +08:00
committed by Peng Fan
parent ba89878d70
commit 4992d8360d
+1 -1
View 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;