We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 824ccab commit 4a0f1f0Copy full SHA for 4a0f1f0
drivers/pwm/pwm-ep93xx.c
@@ -17,6 +17,7 @@
17
*/
18
19
#include <linux/module.h>
20
+#include <linux/mod_devicetable.h>
21
#include <linux/platform_device.h>
22
#include <linux/slab.h>
23
#include <linux/clk.h>
@@ -188,9 +189,16 @@ static int ep93xx_pwm_probe(struct platform_device *pdev)
188
189
return 0;
190
}
191
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
+
198
static struct platform_driver ep93xx_pwm_driver = {
199
.driver = {
200
.name = "ep93xx-pwm",
201
+ .of_match_table = ep93xx_pwm_of_ids,
202
},
203
.probe = ep93xx_pwm_probe,
204
};
0 commit comments