mfd: arizona: Add comment to explain non-devm regulator_get
[deliverable/linux.git] / drivers / mfd / arizona-core.c
index 27936fe894345560a4aaf93f72eb63e0c97269ce..b4f22e7b87f2a89650b28b0a308cbda317d68b87 100644 (file)
@@ -683,6 +683,12 @@ int arizona_dev_init(struct arizona *arizona)
                goto err_early;
        }
 
+       /**
+        * Don't use devres here because the only device we have to get
+        * against is the MFD device and DCVDD will likely be supplied by
+        * one of its children. Meaning that the regulator will be
+        * destroyed by the time devres calls regulator put.
+        */
        arizona->dcvdd = regulator_get(arizona->dev, "DCVDD");
        if (IS_ERR(arizona->dcvdd)) {
                ret = PTR_ERR(arizona->dcvdd);
This page took 0.024082 seconds and 5 git commands to generate.