]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
regulator: s2mps11: Don't zero allocated memory for external control
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 16 Oct 2014 08:23:28 +0000 (10:23 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 20 Oct 2014 11:24:04 +0000 (12:24 +0100)
commit80e82ac2ddf0e3de6f38de863b6d90de38961ed8
treee64ed7bc1c2882580ab77942ae7c6837db948faf
parentf114040e3ea6e07372334ade75d1ee0775c355e1
regulator: s2mps11: Don't zero allocated memory for external control

The driver was allocating memory for storing GPIOs for external control
with unnecessary GFP_ZERO flag. Then right after allocation it
initialized memory to -EINVAL in loop. Skip the GFP_ZERO flag.

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