aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6524x-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/tps6524x-regulator.c')
-rw-r--r--drivers/regulator/tps6524x-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index 1094393155ed..62e8d28beabd 100644
--- a/drivers/regulator/tps6524x-regulator.c
+++ b/drivers/regulator/tps6524x-regulator.c
@@ -601,7 +601,7 @@ static int pmic_probe(struct spi_device *spi)
601 struct regulator_config config = { }; 601 struct regulator_config config = { };
602 int ret = 0, i; 602 int ret = 0, i;
603 603
604 init_data = dev->platform_data; 604 init_data = dev_get_platdata(dev);
605 if (!init_data) { 605 if (!init_data) {
606 dev_err(dev, "could not find regulator platform data\n"); 606 dev_err(dev, "could not find regulator platform data\n");
607 return -EINVAL; 607 return -EINVAL;