]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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 13:35:19 +0000 (14:35 +0100)
commit3b233f440d70023b292d525864ac08961e3b1622
tree377d52d079d6b63ba21fbef1548a2ca865fdd6c6
parent7bb85c8339750102cbdf45e1c86acf976168ecaa
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