regulator: rk808: Fix memory leak
authorAxel Lin <axel.lin@ingics.com>
Thu, 28 Aug 2014 13:04:49 +0000 (21:04 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 28 Aug 2014 15:01:25 +0000 (16:01 +0100)
The memory allocated in rk808_regulator_probe() needs to be freed when the
module is unloaded. Thus pass &pdev->dev rather than &client->dev to
devm_kzalloc.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/rk808-regulator.c

Simple merge