Commit 66230729 authored by Wolfram Sang's avatar Wolfram Sang Committed by Mark Brown

regulator: da9063: remove platform_data support

There are no in-kernel users anymore, so remove this outdated interface.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Acked-by: default avatarSteve Twiss <stwiss.opensource@diasemi.com>
Tested-by: default avatarSteve Twiss <stwiss.opensource@diasemi.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 96d82e9d
...@@ -683,7 +683,6 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt( ...@@ -683,7 +683,6 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt(
static int da9063_regulator_probe(struct platform_device *pdev) static int da9063_regulator_probe(struct platform_device *pdev)
{ {
struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent); struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent);
struct da9063_pdata *da9063_pdata = dev_get_platdata(da9063->dev);
struct of_regulator_match *da9063_reg_matches = NULL; struct of_regulator_match *da9063_reg_matches = NULL;
struct da9063_regulators_pdata *regl_pdata; struct da9063_regulators_pdata *regl_pdata;
const struct da9063_dev_model *model; const struct da9063_dev_model *model;
...@@ -693,11 +692,7 @@ static int da9063_regulator_probe(struct platform_device *pdev) ...@@ -693,11 +692,7 @@ static int da9063_regulator_probe(struct platform_device *pdev)
bool bcores_merged, bmem_bio_merged; bool bcores_merged, bmem_bio_merged;
int id, irq, n, n_regulators, ret, val; int id, irq, n, n_regulators, ret, val;
regl_pdata = da9063_pdata ? da9063_pdata->regulators_pdata : NULL; regl_pdata = da9063_parse_regulators_dt(pdev, &da9063_reg_matches);
if (!regl_pdata)
regl_pdata = da9063_parse_regulators_dt(pdev,
&da9063_reg_matches);
if (IS_ERR(regl_pdata) || regl_pdata->n_regulators == 0) { if (IS_ERR(regl_pdata) || regl_pdata->n_regulators == 0) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment