Commit 973af54c authored by Wolfram Sang's avatar Wolfram Sang Committed by Mark Brown

regulator: da9063: platform_data is gone, depend on OF

With OF being the only configuration possibility left, depend on it to
simplify some code.
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 824bd1be
...@@ -257,7 +257,7 @@ config REGULATOR_DA9062 ...@@ -257,7 +257,7 @@ config REGULATOR_DA9062
config REGULATOR_DA9063 config REGULATOR_DA9063
tristate "Dialog Semiconductor DA9063 regulators" tristate "Dialog Semiconductor DA9063 regulators"
depends on MFD_DA9063 depends on MFD_DA9063 && OF
help help
Say y here to support the BUCKs and LDOs regulators found on Say y here to support the BUCKs and LDOs regulators found on
DA9063 PMICs. DA9063 PMICs.
......
...@@ -634,7 +634,6 @@ static const struct regulator_init_data *da9063_get_regulator_initdata( ...@@ -634,7 +634,6 @@ static const struct regulator_init_data *da9063_get_regulator_initdata(
return NULL; return NULL;
} }
#ifdef CONFIG_OF
static struct of_regulator_match da9063_matches[] = { static struct of_regulator_match da9063_matches[] = {
[DA9063_ID_BCORE1] = { .name = "bcore1" }, [DA9063_ID_BCORE1] = { .name = "bcore1" },
[DA9063_ID_BCORE2] = { .name = "bcore2" }, [DA9063_ID_BCORE2] = { .name = "bcore2" },
...@@ -712,15 +711,6 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt( ...@@ -712,15 +711,6 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt(
*da9063_reg_matches = da9063_matches; *da9063_reg_matches = da9063_matches;
return pdata; return pdata;
} }
#else
static struct da9063_regulators_pdata *da9063_parse_regulators_dt(
struct platform_device *pdev,
struct of_regulator_match **da9063_reg_matches)
{
*da9063_reg_matches = NULL;
return ERR_PTR(-ENODEV);
}
#endif
static int da9063_regulator_probe(struct platform_device *pdev) static int da9063_regulator_probe(struct platform_device *pdev)
{ {
......
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