From: Krzysztof Kozlowski Date: Mon, 10 Mar 2014 08:32:50 +0000 (+0100) Subject: regulator: max8952: Use managed regulator registration X-Git-Tag: v3.15-rc1~148^2~3^9~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b874f41c6b3da1a65054f8a8c2fbe77faa9d80be;p=pandora-kernel.git regulator: max8952: Use managed regulator registration Use managed devm_regulator_register to simplify the driver probe and driver remove functions. This allows removing from state container the pointer to regulator_dev returned on registering the regulator. Patch also removes from state container pointer to 'struct device' as it is not used anywhere outside of max8952_pmic_probe() function. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mark Brown --- Reading git-diff-tree failed