--- /dev/null
+From 88da4e8113110d5f4ebdd2f8cd0899e300cd1954 Mon Sep 17 00:00:00 2001
+From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Date: Thu, 17 Nov 2022 13:08:00 +0200
+Subject: pwm: Add a stub for devm_pwmchip_add()
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+
+commit 88da4e8113110d5f4ebdd2f8cd0899e300cd1954 upstream.
+
+The devm_pwmchip_add() can be called by a module that optionally
+instantiates PWM chip. In the case of CONFIG_PWM=n, the compilation
+can't be performed. Hence, add a necessary stub.
+
+Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Acked-by: Thierry Reding <thierry.reding@gmail.com>
+Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
+Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ include/linux/pwm.h | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+--- a/include/linux/pwm.h
++++ b/include/linux/pwm.h
+@@ -489,6 +489,11 @@ static inline int pwmchip_remove(struct
+ return -EINVAL;
+ }
+
++static inline int devm_pwmchip_add(struct device *dev, struct pwm_chip *chip)
++{
++ return -EINVAL;
++}
++
+ static inline struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
+ unsigned int index,
+ const char *label)
kvm-s390-pv-fix-index-value-of-replaced-asce.patch
io_uring-don-t-audit-the-capability-check-in-io_urin.patch
gpio-tps68470-make-tps68470_gpio_output-always-set-t.patch
+pwm-add-a-stub-for-devm_pwmchip_add.patch
gpio-mvebu-make-use-of-devm_pwmchip_add.patch
gpio-mvebu-fix-irq-domain-leak.patch
btrfs-fix-race-between-quota-disable-and-relocation.patch