allwinner: a64: power: Remove duplicate DT check
should_enable_regulator() is already checked in the regulators subnode loop before setup_regulator() is called, so there's no need to check it again here. Signed-off-by: Samuel Holland <samuel@sholland.org> Change-Id: Idb8b8a6e435246f4fb226bc84813449d80a0a977
This commit is contained in:
parent
18fbfefbbb
commit
3bea03e7b4
|
@ -203,9 +203,6 @@ static int setup_regulator(const void *fdt, int node,
|
|||
int mvolt;
|
||||
uint8_t regval;
|
||||
|
||||
if (!should_enable_regulator(fdt, node))
|
||||
return -ENOENT;
|
||||
|
||||
mvolt = fdt_get_regulator_millivolt(fdt, node);
|
||||
if (mvolt < reg->min_volt || mvolt > reg->max_volt)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in New Issue