diff options
Diffstat (limited to 'drivers/regulator/gpio-regulator.c')
-rw-r--r-- | drivers/regulator/gpio-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c index 9d39eb4aafa3..98a98ffa7fe0 100644 --- a/drivers/regulator/gpio-regulator.c +++ b/drivers/regulator/gpio-regulator.c | |||
@@ -219,7 +219,7 @@ static struct regulator_ops gpio_regulator_current_ops = { | |||
219 | 219 | ||
220 | static int gpio_regulator_probe(struct platform_device *pdev) | 220 | static int gpio_regulator_probe(struct platform_device *pdev) |
221 | { | 221 | { |
222 | struct gpio_regulator_config *config = pdev->dev.platform_data; | 222 | struct gpio_regulator_config *config = dev_get_platdata(&pdev->dev); |
223 | struct device_node *np = pdev->dev.of_node; | 223 | struct device_node *np = pdev->dev.of_node; |
224 | struct gpio_regulator_data *drvdata; | 224 | struct gpio_regulator_data *drvdata; |
225 | struct regulator_config cfg = { }; | 225 | struct regulator_config cfg = { }; |