[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1337436846-30025-1-git-send-email-ldewangan@nvidia.com>
Date: Sat, 19 May 2012 19:44:06 +0530
From: Laxman Dewangan <ldewangan@...dia.com>
To: <broonie@...nsource.wolfsonmicro.com>, <lrg@...com>
CC: <linux-kernel@...r.kernel.org>,
Laxman Dewangan <ldewangan@...dia.com>
Subject: [PATCH] regulator: core: use correct device for device supply lookup
When registering the regulator driver, use the rdev->dev for
getting the regulator device of given supply instead of parent
device.
Signed-off-by: Laxman Dewangan <ldewangan@...dia.com>
---
drivers/regulator/core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 7584a74..f820137 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3150,7 +3150,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
if (supply) {
struct regulator_dev *r;
- r = regulator_dev_lookup(dev, supply, &ret);
+ r = regulator_dev_lookup(&rdev->dev, supply, &ret);
if (!r) {
dev_err(dev, "Failed to find supply %s\n", supply);
--
1.7.1.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists