OSDN Git Service

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)
commit8538c4075e8fab89e23d35cf27cd5e7e33f7e71e
treeb2fd917267f489b43be89434de4a9fe8f6a512fc
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
regulator: lp872x: Remove **regulators from struct lp872x

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>
drivers/regulator/lp872x.c