regulator: tps65917/palmas: Handle possible memory allocation failure
authorNishanth Menon <nm@ti.com>
Fri, 6 May 2016 00:29:51 +0000 (19:29 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 6 May 2016 17:15:18 +0000 (18:15 +0100)
commit7f091e53c9efc52b2b3a03a8a1d479a47956fecd
tree54827945addf98d7688d14e09ca1ddcd0762cba7
parent1b42443db670dde5e3cb4261f77b29010b163fc6
regulator: tps65917/palmas: Handle possible memory allocation failure

Stop the palmas regulator driver from imagining that the allocations
will always succeed. Since regulator dt nodes are optional in nature and
can be described in downstream drivers via platform data, continue to
maintain code flow as prior when of node is not found.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/palmas-regulator.c