regulator: use dev_get_platdata()
[deliverable/linux.git] / drivers / regulator / wm8994-regulator.c
index 8f2a8a7a3f997f5475d305b87f508a47a6daf267..5ee2a208457c2b58e46fb1f1d7a79e8b180c4a35 100644 (file)
@@ -125,7 +125,7 @@ static const struct regulator_init_data wm8994_ldo_default[] = {
 static int wm8994_ldo_probe(struct platform_device *pdev)
 {
        struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent);
-       struct wm8994_pdata *pdata = wm8994->dev->platform_data;
+       struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev);
        int id = pdev->id % ARRAY_SIZE(pdata->ldo);
        struct regulator_config config = { };
        struct wm8994_ldo *ldo;
This page took 0.032918 seconds and 5 git commands to generate.