From: Mark Brown Date: Mon, 7 May 2012 10:34:52 +0000 (+0100) Subject: regulator: Actually free the regulator in devm_regulator_put() X-Git-Tag: v3.4-rc7~24^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=968c2c1707a3396ccd6e7e6c5ddaf658a6d3bd66;p=pandora-kernel.git regulator: Actually free the regulator in devm_regulator_put() It turns out that (quite surprisingly) devres_destroy() only undoes the devres mapping, it doesn't destroy the underlying resource, meaning that anything using devm_regulator_put() would leak. While we wait for the new devres_release() which does what we want to get merged open code it in devm_regulator_put(). Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- Reading git-diff-tree failed