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 <nikita.shubin@maquefel.me> Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Tested-by: Michael Peters <mpeters@embeddedTS.com> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Mark Brown <broonie@kernel.org> Reviewed-by: Andy Shevchenko <andy@kernel.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Kris Bahnsen <kris@embeddedTS.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Acked-by: Damien Le Moal <dlemoal@kernel.org> Acked-by: Sebastian Reichel <sre@kernel.org> Acked-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 824ccab commit 4a0f1f0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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)