]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max77620: check for valid regulator info
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Wed, 29 Jun 2016 10:01:27 +0000 (15:31 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jun 2016 17:50:05 +0000 (18:50 +0100)
commit91ff811f32763ea3135e832f7c1aeafc85ae1c98
treed287fb4d911a52ce07a06a8a94393dc83086d389
parent1a695a905c18548062509178b98bc91e67510864
regulator: max77620: check for valid regulator info

SD4 regulator is not registered with regulator core
framework in probe as there is no support in MAX77620 PMIC,
removing SD4 entry from MAX77620 regulator information list
and checking for valid regulator information data before
configuring FPS source and FPS power up/down period to avoid
NULL pointer exception if regulator not registered with core.

Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77620-regulator.c