]> 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)
commit27f664344958cd668c2f10fd50d511162e0b2e0e
treed287fb4d911a52ce07a06a8a94393dc83086d389
parent50071cc55229e13f7b459c28388ff0f4e1bac824
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