regulator: pbias: don't evaluate variable before assignment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 11:01:06 +0000 (12:01 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 7 Apr 2018 00:45:28 +0000 (20:45 -0400)
commitc57b6b7090eab6a83c57175185e53166ab532675
tree4c0c2281eb94a6582fdb67c179241fb21f67cd11
parent62896dcbf37b478f7f719e2ce456d9bfe91a291a
regulator: pbias: don't evaluate variable before assignment

We should not evaluate the value of reg before its value is set.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/power/regulator/pbias_regulator.c