[PATCH] misc: ls2_sfp: Fix regulator name

Sean Anderson sean.anderson at seco.com
Fri Jan 27 17:54:53 CET 2023


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 at seco.com>
---

 drivers/misc/ls2_sfp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.35.1.1320.gc452695387.dirty



More information about the U-Boot mailing list