diff options
-rw-r--r-- | drivers/regulator/max8925-regulator.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/max8925-regulator.c b/drivers/regulator/max8925-regulator.c index 0d5f64a805a0..3597da8f0dca 100644 --- a/drivers/regulator/max8925-regulator.c +++ b/drivers/regulator/max8925-regulator.c | |||
@@ -246,7 +246,6 @@ static struct max8925_regulator_info max8925_regulator_info[] = { | |||
246 | 246 | ||
247 | #ifdef CONFIG_OF | 247 | #ifdef CONFIG_OF |
248 | static int max8925_regulator_dt_init(struct platform_device *pdev, | 248 | static int max8925_regulator_dt_init(struct platform_device *pdev, |
249 | struct max8925_regulator_info *info, | ||
250 | struct regulator_config *config, | 249 | struct regulator_config *config, |
251 | int ridx) | 250 | int ridx) |
252 | { | 251 | { |
@@ -272,7 +271,7 @@ static int max8925_regulator_dt_init(struct platform_device *pdev, | |||
272 | return 0; | 271 | return 0; |
273 | } | 272 | } |
274 | #else | 273 | #else |
275 | #define max8925_regulator_dt_init(w, x, y, z) (-1) | 274 | #define max8925_regulator_dt_init(x, y, z) (-1) |
276 | #endif | 275 | #endif |
277 | 276 | ||
278 | static int max8925_regulator_probe(struct platform_device *pdev) | 277 | static int max8925_regulator_probe(struct platform_device *pdev) |
@@ -309,7 +308,7 @@ static int max8925_regulator_probe(struct platform_device *pdev) | |||
309 | config.dev = &pdev->dev; | 308 | config.dev = &pdev->dev; |
310 | config.driver_data = ri; | 309 | config.driver_data = ri; |
311 | 310 | ||
312 | if (max8925_regulator_dt_init(pdev, ri, &config, regulator_idx)) | 311 | if (max8925_regulator_dt_init(pdev, &config, regulator_idx)) |
313 | if (pdata) | 312 | if (pdata) |
314 | config.init_data = pdata; | 313 | config.init_data = pdata; |
315 | 314 | ||