regulator: s2mps11: Fix GPIO descriptor initialization
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 20 Nov 2018 12:38:44 +0000 (13:38 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 20 Nov 2018 15:25:40 +0000 (15:25 +0000)
commitd7c7fc442fa6f6f0cd0115d7b8dbdf6fe2eeea44
tree82268c0fdbaa7979e0961c0852b05f5d6d9bd60a
parentffb8c1e45e7ae648a3a1689aa71be50fb459316e
regulator: s2mps11: Fix GPIO descriptor initialization

GPIO descriptor array must be zero initialized to ensure that core will
properly handle also the case when no external GPIO pin is defined.

Fixes: 1c984942f0a4 ("regulator: s2mps11: Pass descriptor instead of GPIO number")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2mps11.c