regulator: max8660: Handle empty regulator data
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 10 Apr 2015 13:23:42 +0000 (15:23 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 10 Apr 2015 17:17:53 +0000 (18:17 +0100)
commitc0cf5a59fb69527151eb8e332a1b9660200f66c6
tree49c30d63791ded52d3bf221b621beecab57c087a
parentdfb85ba1140ab649f6f0bf3e502ac37c0f69dbcb
regulator: max8660: Handle empty regulator data

It is not necessary to have regulator init data for a regulator. This
patch removes the necessity of this data and handles a NULL pointer
properly.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8660.c