Commit 494c8233 authored by Samuel Holland's avatar Samuel Holland
Browse files

allwinner: a64: power: Remove obsolete register check

As of a561e41b

 ("allwinner: power: add enable switches for DCDC1/5")
there are no longer regulators without an enable register provided.
Since it seems reasonable that this will continue to be the case, drop
the check.
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Change-Id: Icd7ec26fc6450d053e6e6d855fc16229b1d65a39
parent 3bea03e7
...@@ -212,7 +212,6 @@ static int setup_regulator(const void *fdt, int node, ...@@ -212,7 +212,6 @@ static int setup_regulator(const void *fdt, int node,
regval = ((regval - reg->split) / 2) + reg->split; regval = ((regval - reg->split) / 2) + reg->split;
axp_write(reg->volt_reg, regval); axp_write(reg->volt_reg, regval);
if (reg->switch_reg < 0xff)
axp_setbits(reg->switch_reg, BIT(reg->switch_bit)); axp_setbits(reg->switch_reg, BIT(reg->switch_bit));
INFO("PMIC: AXP803: %s voltage: %d.%03dV\n", reg->dt_name, INFO("PMIC: AXP803: %s voltage: %d.%03dV\n", reg->dt_name,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment