regulator: lp872x: Remove **regulators from struct lp872x
authorAxel Lin <axel.lin@ingics.com>
Mon, 26 Jan 2015 02:25:13 +0000 (10:25 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 26 Jan 2015 19:10:55 +0000 (19:10 +0000)
Current code is using devm_regulator_register(), so we don't need to store *rdev
in struct lp872x for clean up.
Also clean up lp872x_probe() a bit to remove unnecessary goto and num_regulators
variable.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

No differences found