regulator: s2mps11: Use local variable for number of regulators
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 18 Feb 2016 05:57:03 +0000 (14:57 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 19 Feb 2016 16:07:40 +0000 (01:07 +0900)
commit7ddec641214914ad878811822ec24e01f3d1c97e
tree7ab64eccb48c5a36c62c9b2504f5aa651ac8c69f
parent297eaaa6d0bf09a91045e1d8c9b1e555d8b91d8a
regulator: s2mps11: Use local variable for number of regulators

Remove the s2mps11_info.rdev_num because it is not used outside of
probe.

Suggested-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2mps11.c