Skip to content

Commit 4a0f1f0

Browse files
maquefelarndb
authored andcommitted
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]>
1 parent 824ccab commit 4a0f1f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/pwm/pwm-ep93xx.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include <linux/module.h>
20+
#include <linux/mod_devicetable.h>
2021
#include <linux/platform_device.h>
2122
#include <linux/slab.h>
2223
#include <linux/clk.h>
@@ -188,9 +189,16 @@ static int ep93xx_pwm_probe(struct platform_device *pdev)
188189
return 0;
189190
}
190191

192+
static const struct of_device_id ep93xx_pwm_of_ids[] = {
193+
{ .compatible = "cirrus,ep9301-pwm" },
194+
{ /* sentinel */}
195+
};
196+
MODULE_DEVICE_TABLE(of, ep93xx_pwm_of_ids);
197+
191198
static struct platform_driver ep93xx_pwm_driver = {
192199
.driver = {
193200
.name = "ep93xx-pwm",
201+
.of_match_table = ep93xx_pwm_of_ids,
194202
},
195203
.probe = ep93xx_pwm_probe,
196204
};

0 commit comments

Comments
 (0)