]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
regulator: da9063: platform_data is gone, depend on OF
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 20 May 2019 09:34:46 +0000 (11:34 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 20 May 2019 14:26:12 +0000 (15:26 +0100)
With OF being the only configuration possibility left, depend on it to
simplify some code.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Tested-by: Steve Twiss <stwiss.opensource@diasemi.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/da9063-regulator.c

index b8e39109cbc688a2182e4bef2b043acef1d6db19..5e3a9e6547b0d91bbed4f3dda96b96e5a0929268 100644 (file)
@@ -257,7 +257,7 @@ config REGULATOR_DA9062
 
 config REGULATOR_DA9063
        tristate "Dialog Semiconductor DA9063 regulators"
-       depends on MFD_DA9063
+       depends on MFD_DA9063 && OF
        help
          Say y here to support the BUCKs and LDOs regulators found on
          DA9063 PMICs.
index da95197fdb4f623510f3bd8ee6bab23a623236fe..02f816318fba9762862af0536b401a3818118ba5 100644 (file)
@@ -634,7 +634,6 @@ static const struct regulator_init_data *da9063_get_regulator_initdata(
        return NULL;
 }
 
-#ifdef CONFIG_OF
 static struct of_regulator_match da9063_matches[] = {
        [DA9063_ID_BCORE1]           = { .name = "bcore1"           },
        [DA9063_ID_BCORE2]           = { .name = "bcore2"           },
@@ -712,15 +711,6 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt(
        *da9063_reg_matches = da9063_matches;
        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)
 {