X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=target%2Flinux%2Fsunxi%2Fpatches-3.13%2F124-regulator-dont-print-error-when-no-regulator-found.patch;fp=target%2Flinux%2Fsunxi%2Fpatches-3.13%2F124-regulator-dont-print-error-when-no-regulator-found.patch;h=0000000000000000000000000000000000000000;hb=8047200d356507352aff58aceb108a8f66854b00;hp=0ec3bb5b96f942842b2b9aa1e577a70b29dd5c6b;hpb=deefbdb53dc2f5790475265bf63c0ab704a6a25e;p=openwrt.git diff --git a/target/linux/sunxi/patches-3.13/124-regulator-dont-print-error-when-no-regulator-found.patch b/target/linux/sunxi/patches-3.13/124-regulator-dont-print-error-when-no-regulator-found.patch deleted file mode 100644 index 0ec3bb5b96..0000000000 --- a/target/linux/sunxi/patches-3.13/124-regulator-dont-print-error-when-no-regulator-found.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 820a121fdef79cc1293e6fee2fbe8156d9e8a75a Mon Sep 17 00:00:00 2001 -From: Hans de Goede -Date: Wed, 11 Dec 2013 15:07:52 +0100 -Subject: [PATCH] regulator_get_optional: don't print an error when no - regulator is found - -Only print an error when _regulator_get() is expected to return a valid -regulator, that is when _regulator_get() is called from regulator_get() and -we're not using the dummy because we don't have full-constraints, or when -_regulator_get() is called from regulator_get_exclusive() in which case -returning a dummy is not allowed. - -Signed-off-by: Hans de Goede ---- - drivers/regulator/core.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - ---- a/drivers/regulator/core.c -+++ b/drivers/regulator/core.c -@@ -1351,7 +1351,8 @@ static struct regulator *_regulator_get( - - rdev = dummy_regulator_rdev; - goto found; -- } else { -+ /* Don't log an error when called from regulator_get_optional() */ -+ } else if (!have_full_constraints() || exclusive) { - dev_err(dev, "dummy supplies not allowed\n"); - } -