pwm-regulator: do not fail if no regulator-init-microvolt found

There are many boards in kernel do not have a regulator-init-microvolt
in pwm regulator, let's make it available.

Change-Id: Ib8235af4082f3428eb04684617a52bb68a4b2e7a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2018-05-24 16:37:14 +08:00
parent fc4a6bd40d
commit 27b7c22892
1 changed files with 0 additions and 1 deletions

View File

@ -106,7 +106,6 @@ static int pwm_regulator_ofdata_to_platdata(struct udevice *dev)
priv->init_voltage = dev_read_u32_default(dev, "regulator-init-microvolt", -1);
if (priv->init_voltage < 0) {
printf("Cannot find regulator pwm init_voltage\n");
return -EINVAL;
}
ret = uclass_get_device_by_ofnode(UCLASS_PWM, args.node, &priv->pwm);