summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2013-06-11 00:13:39 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:09 +0900
commit590498723502b98cff8db2b69670b36c625ec9a3 (patch)
tree3598cb963ed0ce52867c5bd3d72abe39aa7aaaa6 /drivers/regulator
parent78c11c3ddf9fde8cfd344364aeec108ec14f822c (diff)
downloadlinux-3.10-590498723502b98cff8db2b69670b36c625ec9a3.tar.gz
linux-3.10-590498723502b98cff8db2b69670b36c625ec9a3.tar.bz2
linux-3.10-590498723502b98cff8db2b69670b36c625ec9a3.zip
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 <jonghwa3.lee@samsung.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/max77693.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c
index fb802d595eb..8f170e9bb83 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);