From: Axel Lin Date: Thu, 11 Sep 2014 10:22:48 +0000 (+0800) Subject: regulator: rk808: Fix missing of_node_put X-Git-Tag: fixes-for-v3.18-merge-window~31^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ed3f8ce8399255c7cca43dde5d3a19b2b7dc287;p=pandora-kernel.git regulator: rk808: Fix missing of_node_put 1. Pass &pdev->dev rather than &client->dev to of_regulator_match, the *dev argument is used for devres to ensure devm_of_regulator_put_matches() will be called when unload the module. 2. of_get_child_by_name() returns a node pointer with refcount incremented. Thus add missing of_node_put(reg_np). Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed