Skip to content

Commit

Permalink
ramips: Fix drivers/pwm/pwm-mediatek-ramips.c compile
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hauke authored and aiamadeus committed Dec 25, 2022
1 parent 80d52e7 commit cdae37f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
+ *
Expand Down Expand Up @@ -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[] = {
Expand Down

0 comments on commit cdae37f

Please sign in to comment.