regulator: max77620: Initialize values for DT properties
authorMark Zhang <markz@nvidia.com>
Thu, 10 Jan 2019 04:11:16 +0000 (12:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:09:58 +0000 (20:09 +0100)
commitc288e34df1281f6fc51983a60c3da318560c9975
tree6ad8bebead23743fdff99cc0ecf1f3872d90323e
parent462aee48a8a20c80ff42cad95f6bf6c4436ec085
regulator: max77620: Initialize values for DT properties

commit 0ab66b3c326ef8f77dae9f528118966365757c0c upstream.

If regulator DT node doesn't exist, its of_parse_cb callback
function isn't called. Then all values for DT properties are
filled with zero. This leads to wrong register update for
FPS and POK settings.

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Signed-off-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/max77620-regulator.c