regulator: core: Avoid negative regulator no & initialize it to -1
authorAniroop Mathur <aniroop.mathur@gmail.com>
Sun, 28 Dec 2014 16:38:38 +0000 (22:08 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 29 Dec 2014 16:08:46 +0000 (16:08 +0000)
commit72dca06f62c50415de3202f204200f58769d0b8b
treeba3835f0ae82f33389dbb3896af6473c71b8adb2
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
regulator: core: Avoid negative regulator no & initialize it to -1

This patch initializes regulator_no to -1 to avoid extra subtraction
operation performed every time we register a regulator and avoid negative
regulator no in its name.

Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c