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>
This commit is contained in:
parent
6dbe51c251
commit
ad4928f1dc
|
@ -246,7 +246,6 @@ static struct max8925_regulator_info max8925_regulator_info[] = {
|
||||||
|
|
||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
static int max8925_regulator_dt_init(struct platform_device *pdev,
|
static int max8925_regulator_dt_init(struct platform_device *pdev,
|
||||||
struct max8925_regulator_info *info,
|
|
||||||
struct regulator_config *config,
|
struct regulator_config *config,
|
||||||
int ridx)
|
int ridx)
|
||||||
{
|
{
|
||||||
|
@ -272,7 +271,7 @@ static int max8925_regulator_dt_init(struct platform_device *pdev,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define max8925_regulator_dt_init(w, x, y, z) (-1)
|
#define max8925_regulator_dt_init(x, y, z) (-1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int max8925_regulator_probe(struct platform_device *pdev)
|
static int max8925_regulator_probe(struct platform_device *pdev)
|
||||||
|
@ -309,7 +308,7 @@ static int max8925_regulator_probe(struct platform_device *pdev)
|
||||||
config.dev = &pdev->dev;
|
config.dev = &pdev->dev;
|
||||||
config.driver_data = ri;
|
config.driver_data = ri;
|
||||||
|
|
||||||
if (max8925_regulator_dt_init(pdev, ri, &config, regulator_idx))
|
if (max8925_regulator_dt_init(pdev, &config, regulator_idx))
|
||||||
if (pdata)
|
if (pdata)
|
||||||
config.init_data = pdata;
|
config.init_data = pdata;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue