@@ -339,17 +339,6 @@ out:
return ret;
}
-int regulator_unset(struct udevice *dev)
-{
- struct dm_regulator_uclass_plat *uc_pdata;
-
- uc_pdata = dev_get_uclass_plat(dev);
- if (uc_pdata && uc_pdata->force_off)
- return regulator_set_enable(dev, false);
-
- return -EMEDIUMTYPE;
-}
-
static void regulator_show(struct udevice *dev, int ret)
{
struct dm_regulator_uclass_plat *uc_pdata;
@@ -430,7 +430,7 @@ int regulators_enable_boot_on(bool verbose);
*
* This disables all regulators which are marked to be off at boot time.
*
- * This effectively calls regulator_unset() for every regulator.
+ * This effectively does nothing.
*/
int regulators_enable_boot_off(bool verbose);
@@ -453,18 +453,6 @@ int regulators_enable_boot_off(bool verbose);
*/
int regulator_autoset(struct udevice *dev);
-/**
- * regulator_unset: turn off a regulator
- *
- * The setup depends on constraints found in device's uclass's platform data
- * (struct dm_regulator_uclass_platdata):
- *
- * - Disable - will set - if 'force_off' is set to true,
- *
- * The function returns on the first-encountered error.
- */
-int regulator_unset(struct udevice *dev);
-
/**
* regulator_autoset_by_name: setup the regulator given by its uclass's
* platform data name field. The setup depends on constraints found in device's
This function is never called, drop it. Signed-off-by: Marek Vasut <marex@denx.de> --- Cc: Ben Wolsieffer <benwolsieffer@gmail.com> Cc: Caleb Connolly <caleb.connolly@linaro.org> Cc: Chris Morgan <macromorgan@hotmail.com> Cc: Dragan Simic <dsimic@manjaro.org> Cc: Eugen Hristev <eugen.hristev@collabora.com> Cc: Francesco Dolcini <francesco.dolcini@toradex.com> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Jagan Teki <jagan@amarulasolutions.com> Cc: Jonas Karlman <jonas@kwiboo.se> Cc: Kever Yang <kever.yang@rock-chips.com> Cc: Kostya Porotchkin <kostap@marvell.com> Cc: Matteo Lisi <matteo.lisi@engicam.com> Cc: Mattijs Korpershoek <mkorpershoek@baylibre.com> Cc: Max Krummenacher <max.krummenacher@toradex.com> Cc: Neil Armstrong <neil.armstrong@linaro.org> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Cc: Philipp Tomsich <philipp.tomsich@vrull.eu> Cc: Quentin Schulz <quentin.schulz@cherry.de> Cc: Sam Day <me@samcday.com> Cc: Simon Glass <sjg@chromium.org> Cc: Sumit Garg <sumit.garg@linaro.org> Cc: Svyatoslav Ryhel <clamor95@gmail.com> Cc: Thierry Reding <treding@nvidia.com> Cc: Tom Rini <trini@konsulko.com> Cc: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com> Cc: u-boot-amlogic@groups.io Cc: u-boot-qcom@groups.io Cc: u-boot@dh-electronics.com Cc: u-boot@lists.denx.de Cc: uboot-stm32@st-md-mailman.stormreply.com --- drivers/power/regulator/regulator-uclass.c | 11 ----------- include/power/regulator.h | 14 +------------- 2 files changed, 1 insertion(+), 24 deletions(-)