From 590498723502b98cff8db2b69670b36c625ec9a3 Mon Sep 17 00:00:00 2001 From: Jonghwa Lee Date: Tue, 11 Jun 2013 00:13:39 +0900 Subject: [PATCH] regulator: max77693: Pass of_node when regulator is registered. Since of_get_regulator() retrieve regulator's list with of_node pointer, all regulator is required to hold their device tree node if regulator driver uses device tree. Signed-off-by: Jonghwa Lee --- drivers/regulator/max77693.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c index fb802d5..8f170e9b 100644 --- a/drivers/regulator/max77693.c +++ b/drivers/regulator/max77693.c @@ -772,6 +772,7 @@ static int max77693_pmic_probe(struct platform_device *pdev) int id = pdata->regulators[i].id; config.init_data = pdata->regulators[i].initdata; + config.of_node = pdata->regulators[i].of_node; pr_info("[%s:%d] for in pdata->num_regulators:%d\n", __FILE__, __LINE__, pdata->num_regulators); -- 2.7.4