regulator: max8973: get rid of extra variable for gpio validity
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 6 May 2015 12:50:10 +0000 (18:20 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2015 21:09:52 +0000 (22:09 +0100)
commitfa5f509fb5a9d189de9fe59d41be25f6b350b7cb
tree09e9d6286db7946cefc8b7386e27252e6f0e160d
parenteaacaa09e42ab9ae0ebc25fc2b72aef02e3f284a
regulator: max8973: get rid of extra variable for gpio validity

To find that dvs-gpio is valid or not, gpio API gpio_is_valid()
can be directly used instead of intermediate variable.

Removing the extra variable and using the gpio_is_valid().

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8973-regulator.c