|
@@ -41,7 +41,7 @@ Signed-off-by: John Crispin <[email protected]>
|
|
obj-$(CONFIG_PWM_NTXEC) += pwm-ntxec.o
|
|
obj-$(CONFIG_PWM_NTXEC) += pwm-ntxec.o
|
|
--- /dev/null
|
|
--- /dev/null
|
|
+++ b/drivers/pwm/pwm-mediatek-ramips.c
|
|
+++ b/drivers/pwm/pwm-mediatek-ramips.c
|
|
-@@ -0,0 +1,173 @@
|
|
|
|
|
|
+@@ -0,0 +1,175 @@
|
|
+/*
|
|
+/*
|
|
+ * Mediatek Pulse Width Modulator driver
|
|
+ * Mediatek Pulse Width Modulator driver
|
|
+ *
|
|
+ *
|
|
@@ -190,7 +190,9 @@ Signed-off-by: John Crispin <[email protected]>
|
|
+ for (i = 0; i < NUM_PWM; i++)
|
|
+ for (i = 0; i < NUM_PWM; i++)
|
|
+ pwm_disable(&pc->chip.pwms[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[] = {
|
|
+static const struct of_device_id mtk_pwm_of_match[] = {
|