aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-5.15
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-12-23 00:33:44 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2022-12-23 00:43:39 +0100
commit376eb2d9240520e793d8f62996693152d136b465 (patch)
tree55b187d6435324271787d1f603a82e75c7d3acb1 /target/linux/ramips/patches-5.15
parent92eb787d08be3fc8cfdf314f99a5b1dd91b439b2 (diff)
downloadupstream-376eb2d9240520e793d8f62996693152d136b465.tar.gz
upstream-376eb2d9240520e793d8f62996693152d136b465.tar.bz2
upstream-376eb2d9240520e793d8f62996693152d136b465.zip
ramips: Fix drivers/pwm/pwm-mediatek-ramips.c compile
The pwmchip_remove() function returns void now. Fix a compile problem in the drivers/pwm/pwm-mediatek-ramips.c driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/ramips/patches-5.15')
-rw-r--r--target/linux/ramips/patches-5.15/845-pwm-add-mediatek-support.patch6
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/ramips/patches-5.15/845-pwm-add-mediatek-support.patch b/target/linux/ramips/patches-5.15/845-pwm-add-mediatek-support.patch
index 7792b7d63c..06074d6031 100644
--- a/target/linux/ramips/patches-5.15/845-pwm-add-mediatek-support.patch
+++ b/target/linux/ramips/patches-5.15/845-pwm-add-mediatek-support.patch
@@ -41,7 +41,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
obj-$(CONFIG_PWM_NTXEC) += pwm-ntxec.o
--- /dev/null
+++ b/drivers/pwm/pwm-mediatek-ramips.c
-@@ -0,0 +1,173 @@
+@@ -0,0 +1,175 @@
+/*
+ * Mediatek Pulse Width Modulator driver
+ *
@@ -190,7 +190,9 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ for (i = 0; i < NUM_PWM; i++)
+ pwm_disable(&pc->chip.pwms[i]);
+
-+ return pwmchip_remove(&pc->chip);
++ pwmchip_remove(&pc->chip);
++
++ return 0;
+}
+
+static const struct of_device_id mtk_pwm_of_match[] = {