diff options
| author | Nikita Shubin <[email protected]> | 2024-09-09 11:10:38 +0300 |
|---|---|---|
| committer | Arnd Bergmann <[email protected]> | 2024-09-12 14:33:11 +0000 |
| commit | 4a0f1f0993f532890e7746a30dee8a826149cd3b (patch) | |
| tree | 43528cc1263e0e4190711927f790b76c477542ad | |
| parent | 824ccabd73aa2aea35ec5ef979ef67be6b691d15 (diff) | |
pwm: ep93xx: add DT support for Cirrus EP93xx
Add OF ID match table.
Signed-off-by: Nikita Shubin <[email protected]>
Tested-by: Alexander Sverdlin <[email protected]>
Tested-by: Michael Peters <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Reviewed-by: Kris Bahnsen <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Sergey Shtylyov <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Acked-by: Miquel Raynal <[email protected]>
Acked-by: Alexander Sverdlin <[email protected]>
Acked-by: Damien Le Moal <[email protected]>
Acked-by: Sebastian Reichel <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
| -rw-r--r-- | drivers/pwm/pwm-ep93xx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-ep93xx.c b/drivers/pwm/pwm-ep93xx.c index 666f2954133c..67c3fdbf7ae3 100644 --- a/drivers/pwm/pwm-ep93xx.c +++ b/drivers/pwm/pwm-ep93xx.c @@ -17,6 +17,7 @@ */ #include <linux/module.h> +#include <linux/mod_devicetable.h> #include <linux/platform_device.h> #include <linux/slab.h> #include <linux/clk.h> @@ -188,9 +189,16 @@ static int ep93xx_pwm_probe(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_pwm_of_ids[] = { + { .compatible = "cirrus,ep9301-pwm" }, + { /* sentinel */} +}; +MODULE_DEVICE_TABLE(of, ep93xx_pwm_of_ids); + static struct platform_driver ep93xx_pwm_driver = { .driver = { .name = "ep93xx-pwm", + .of_match_table = ep93xx_pwm_of_ids, }, .probe = ep93xx_pwm_probe, }; |