diff options
Diffstat (limited to 'drivers/regulator/wm831x-ldo.c')
-rw-r--r-- | drivers/regulator/wm831x-ldo.c | 6 |
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 = { | |||
221 | static int wm831x_gp_ldo_probe(struct platform_device *pdev) | 221 | static 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 = { | |||
447 | static int wm831x_aldo_probe(struct platform_device *pdev) | 447 | static 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 = { | |||
605 | static int wm831x_alive_ldo_probe(struct platform_device *pdev) | 605 | static 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; |