]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2019 05:52:23 +0000 (06:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2019 05:52:23 +0000 (06:52 +0100)
added patches:
leds-pwm-silently-error-out-on-eprobe_defer.patch

queue-4.19/leds-pwm-silently-error-out-on-eprobe_defer.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/leds-pwm-silently-error-out-on-eprobe_defer.patch b/queue-4.19/leds-pwm-silently-error-out-on-eprobe_defer.patch
new file mode 100644 (file)
index 0000000..0080186
--- /dev/null
@@ -0,0 +1,35 @@
+From 9aec30371fb095a0c9415f3f0146ae269c3713d8 Mon Sep 17 00:00:00 2001
+From: Jerome Brunet <jbrunet@baylibre.com>
+Date: Thu, 6 Sep 2018 15:59:04 +0200
+Subject: leds: pwm: silently error out on EPROBE_DEFER
+
+From: Jerome Brunet <jbrunet@baylibre.com>
+
+commit 9aec30371fb095a0c9415f3f0146ae269c3713d8 upstream.
+
+When probing, if we fail to get the pwm due to probe deferal, we shouldn't
+print an error message. Just be silent in this case.
+
+Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
+Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
+Cc: Benjamin Drung <bdrung@debian.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/leds/leds-pwm.c |    5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+--- a/drivers/leds/leds-pwm.c
++++ b/drivers/leds/leds-pwm.c
+@@ -100,8 +100,9 @@ static int led_pwm_add(struct device *de
+               led_data->pwm = devm_pwm_get(dev, led->name);
+       if (IS_ERR(led_data->pwm)) {
+               ret = PTR_ERR(led_data->pwm);
+-              dev_err(dev, "unable to request PWM for %s: %d\n",
+-                      led->name, ret);
++              if (ret != -EPROBE_DEFER)
++                      dev_err(dev, "unable to request PWM for %s: %d\n",
++                              led->name, ret);
+               return ret;
+       }
index a22e9932e6a7d41058d8b84236d40b714461345b..c940991e3e0fdaf0811a13322adadc12de70a2d7 100644 (file)
@@ -124,3 +124,4 @@ lockd-show-pid-of-lockd-for-remote-locks.patch
 nfsd4-zero-length-write-should-succeed.patch
 arm64-drop-linker-script-hack-to-hide-__efistub_-symbols.patch
 arm64-relocatable-fix-inconsistencies-in-linker-script-and-options.patch
+leds-pwm-silently-error-out-on-eprobe_defer.patch