aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm831x-ldo.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 04:20:47 -0400
committerMark Brown <broonie@linaro.org>2013-07-30 07:24:20 -0400
commitdff91d0b721bf8f036c1071a8f16a7effaa87514 (patch)
tree5331cba036ce2e30372603ae9fe51835d48a6ec0 /drivers/regulator/wm831x-ldo.c
parent6625d9d297f28741d42a4ba712338a05f7464bd6 (diff)
regulator: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/wm831x-ldo.c')
-rw-r--r--drivers/regulator/wm831x-ldo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/wm831x-ldo.c b/drivers/regulator/wm831x-ldo.c
index 76792c7d86f3..1432b26ef2e9 100644
--- a/drivers/regulator/wm831x-ldo.c
+++ b/drivers/regulator/wm831x-ldo.c
@@ -221,7 +221,7 @@ static struct regulator_ops wm831x_gp_ldo_ops = {
221static int wm831x_gp_ldo_probe(struct platform_device *pdev) 221static int wm831x_gp_ldo_probe(struct platform_device *pdev)
222{ 222{
223 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); 223 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
224 struct wm831x_pdata *pdata = wm831x->dev->platform_data; 224 struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev);
225 struct regulator_config config = { }; 225 struct regulator_config config = { };
226 int id; 226 int id;
227 struct wm831x_ldo *ldo; 227 struct wm831x_ldo *ldo;
@@ -447,7 +447,7 @@ static struct regulator_ops wm831x_aldo_ops = {
447static int wm831x_aldo_probe(struct platform_device *pdev) 447static int wm831x_aldo_probe(struct platform_device *pdev)
448{ 448{
449 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); 449 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
450 struct wm831x_pdata *pdata = wm831x->dev->platform_data; 450 struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev);
451 struct regulator_config config = { }; 451 struct regulator_config config = { };
452 int id; 452 int id;
453 struct wm831x_ldo *ldo; 453 struct wm831x_ldo *ldo;
@@ -605,7 +605,7 @@ static struct regulator_ops wm831x_alive_ldo_ops = {
605static int wm831x_alive_ldo_probe(struct platform_device *pdev) 605static int wm831x_alive_ldo_probe(struct platform_device *pdev)
606{ 606{
607 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); 607 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
608 struct wm831x_pdata *pdata = wm831x->dev->platform_data; 608 struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev);
609 struct regulator_config config = { }; 609 struct regulator_config config = { };
610 int id; 610 int id;
611 struct wm831x_ldo *ldo; 611 struct wm831x_ldo *ldo;