regulator: tps65090: Fix gpio initialization
authorMarkus Pargmann <mpa@pengutronix.de>
Mon, 3 Nov 2014 18:12:07 +0000 (19:12 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 7 Nov 2014 11:30:25 +0000 (11:30 +0000)
commit679c038f544e46803d4fce16636747c3e77af4f1
tree01269633f8d42314242a83203521b7d2bc0db94a
parent2454f8d15cf75781a2714e99badbfbc2f5a7dacb
regulator: tps65090: Fix gpio initialization

The config is used for multiple regulators within a for loop. The config
field is not cleared before it is used for the next item. To avoid any
issues this patch adds a proper initialization for the config->ena_gpio
field in case no gpio is available.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65090-regulator.c
This page took 0.034456 seconds and 5 git commands to generate.