]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
remove queue-3.4/regulator-core-replace-direct-ops-enable-usage.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2014 05:31:59 +0000 (22:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2014 05:31:59 +0000 (22:31 -0700)
queue-3.4/regulator-core-replace-direct-ops-enable-usage.patch [deleted file]
queue-3.4/series

diff --git a/queue-3.4/regulator-core-replace-direct-ops-enable-usage.patch b/queue-3.4/regulator-core-replace-direct-ops-enable-usage.patch
deleted file mode 100644 (file)
index 59ff78a..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-From 30c219710358c5cca2f8bd2e9e547c6aadf7cf8b Mon Sep 17 00:00:00 2001
-From: Markus Pargmann <mpa@pengutronix.de>
-Date: Thu, 20 Feb 2014 17:36:03 +0100
-Subject: regulator: core: Replace direct ops->enable usage
-
-From: Markus Pargmann <mpa@pengutronix.de>
-
-commit 30c219710358c5cca2f8bd2e9e547c6aadf7cf8b upstream.
-
-There are some direct ops->enable in the regulator core driver. This is
-a potential issue as the function _regulator_do_enable() handles gpio
-regulators and the normal ops->enable calls. These gpio regulators are
-simply ignored when ops->enable is called directly.
-
-One possible bug is that boot-on and always-on gpio regulators are not
-enabled on registration.
-
-This patch replaces all ops->enable calls by _regulator_do_enable.
-
-[Handle missing enable operations -- broonie]
-
-Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
-Signed-off-by: Mark Brown <broonie@linaro.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
-
----
- drivers/regulator/core.c |   14 +++++++-------
- 1 file changed, 7 insertions(+), 7 deletions(-)
-
---- a/drivers/regulator/core.c
-+++ b/drivers/regulator/core.c
-@@ -894,6 +894,8 @@ static int machine_constraints_voltage(s
-       return 0;
- }
-+static int _regulator_do_enable(struct regulator_dev *rdev);
-+
- /**
-  * set_machine_constraints - sets regulator constraints
-  * @rdev: regulator source
-@@ -950,10 +952,9 @@ static int set_machine_constraints(struc
-       /* If the constraints say the regulator should be on at this point
-        * and we have control then make sure it is enabled.
-        */
--      if ((rdev->constraints->always_on || rdev->constraints->boot_on) &&
--          ops->enable) {
--              ret = ops->enable(rdev);
--              if (ret < 0) {
-+      if (rdev->constraints->always_on || rdev->constraints->boot_on) {
-+              ret = _regulator_do_enable(rdev);
-+              if (ret < 0 && ret != -EINVAL) {
-                       rdev_err(rdev, "failed to enable\n");
-                       goto out;
-               }
-@@ -3061,9 +3062,8 @@ int regulator_suspend_finish(void)
-               struct regulator_ops *ops = rdev->desc->ops;
-               mutex_lock(&rdev->mutex);
--              if ((rdev->use_count > 0  || rdev->constraints->always_on) &&
--                              ops->enable) {
--                      error = ops->enable(rdev);
-+              if (rdev->use_count > 0  || rdev->constraints->always_on) {
-+                      error = _regulator_do_enable(rdev);
-                       if (error)
-                               ret = error;
-               } else {
index e410ef3428504ea0c0b7178ab28e34ceda56c1be..e083dab7c63d6cd43033b90da48b129ae062d7b2 100644 (file)
@@ -13,7 +13,6 @@ alsa-oxygen-xonar-dg-x-capture-from-i2s-channel-1-not-2.patch
 alsa-usb-audio-add-quirk-for-logitech-webcam-c500.patch
 powerpc-align-p_dyn-p_rela-and-p_st-symbols.patch
 arm-7991-1-sa1100-fix-compile-problem-on-collie.patch
-regulator-core-replace-direct-ops-enable-usage.patch
 x86-amd-numa-fix-northbridge-quirk-to-assign-correct-numa-node.patch
 genirq-remove-racy-waitqueue_active-check.patch
 cpuset-fix-a-race-condition-in-__cpuset_node_allowed_softwall.patch