]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: s5m8767: Fix dev argument for devm_kzalloc and of_get_regulator_init_data
authorAxel Lin <axel.lin@ingics.com>
Wed, 13 Feb 2013 01:29:45 +0000 (09:29 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Feb 2013 12:52:18 +0000 (12:52 +0000)
commitbb15077ee567c51ad41205a3b34365d4fef1fc30
tree92723e2f2a6d8d3b47ccadc5e64cb7628a93fc60
parentbe065e9dea6ebfe9275f1ea5ec397247e3184375
regulator: s5m8767: Fix dev argument for devm_kzalloc and of_get_regulator_init_data

Use &pdev->dev rather than iodev->dev for devm_kzalloc() and
of_get_regulator_init_data(), this fixes memory leak.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c