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>
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;