From: Sean Anderson Date: Fri, 27 Jan 2023 16:54:53 +0000 (-0500) Subject: misc: ls2_sfp: Fix regulator name X-Git-Tag: v2025.01-rc5-pxa1908~1125^2 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=4992d8360d83e0f9795abe5e54d75962e2fe3f48;p=u-boot.git 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 Signed-off-by: Peng Fan --- diff --git a/drivers/misc/ls2_sfp.c b/drivers/misc/ls2_sfp.c index dd104962c2..2a81bc7de5 100644 --- a/drivers/misc/ls2_sfp.c +++ b/drivers/misc/ls2_sfp.c @@ -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;