Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: max8925: Remove unused parameter from max8925_regulator_dt_init

The info parameter is not used at all, remove it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Axel Lin and committed by
Mark Brown
ad4928f1 6dbe51c2

+2 -3
+2 -3
drivers/regulator/max8925-regulator.c
··· 246 246 247 247 #ifdef CONFIG_OF 248 248 static int max8925_regulator_dt_init(struct platform_device *pdev, 249 - struct max8925_regulator_info *info, 250 249 struct regulator_config *config, 251 250 int ridx) 252 251 { ··· 271 272 return 0; 272 273 } 273 274 #else 274 - #define max8925_regulator_dt_init(w, x, y, z) (-1) 275 + #define max8925_regulator_dt_init(x, y, z) (-1) 275 276 #endif 276 277 277 278 static int max8925_regulator_probe(struct platform_device *pdev) ··· 308 309 config.dev = &pdev->dev; 309 310 config.driver_data = ri; 310 311 311 - if (max8925_regulator_dt_init(pdev, ri, &config, regulator_idx)) 312 + if (max8925_regulator_dt_init(pdev, &config, regulator_idx)) 312 313 if (pdata) 313 314 config.init_data = pdata; 314 315