Re: [PATCH] regulator: rk808: Fix memory leak

2014-08-28 Thread Mark Brown
On Thu, Aug 28, 2014 at 09:04:49PM +0800, Axel Lin wrote: > 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. Applied, thanks. signature.asc Description: Digital signature

[PATCH] regulator: rk808: Fix memory leak

2014-08-28 Thread Axel Lin
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 --- drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver