regulator: core: support of supply name through desc
Laxman Dewangan [Fri, 3 Aug 2012 11:11:18 +0000 (16:11 +0530)]
Add support of providing the supply name through
regualtor descriptor. This help to fill the supply name
in device based on datasheet.
This patch help to develop driver which is align with
mainline.
This change is small set of change in mainline
---------------
commit 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3
Author: Rajendra Nayak <rnayak@ti.com>

    regulator: map consumer regulator based on device tree
---------------

Change-Id: Ia3112f29efe4f0e0c9e98f2b7943255b2eae4c49
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120883

drivers/regulator/core.c

index dd4e44b..2d23aa0 100644 (file)
@@ -3001,7 +3001,6 @@ struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
                struct regulator_dev *r;
 
                r = regulator_dev_lookup(dev, supply);
-
                if (!r) {
                        dev_err(dev, "Failed to find supply %s\n", supply);
                        ret = -EPROBE_DEFER;