From b874f41c6b3da1a65054f8a8c2fbe77faa9d80be Mon Sep 17 00:00:00 2001 From: Krzysztof Kozlowski Date: Mon, 10 Mar 2014 09:32:50 +0100 Subject: [PATCH] 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-format-patch failed