From: Axel Lin Date: Wed, 13 Feb 2013 01:29:45 +0000 (+0800) Subject: regulator: s5m8767: Fix dev argument for devm_kzalloc and of_get_regulator_init_data X-Git-Tag: v3.9-rc1~154^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbb0ed495ca165a94d66610adf64961f2117ec36;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed