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 207bddd commit 1d70f9fCopy full SHA for 1d70f9f
drivers/rtc/rtc-ep93xx.c
@@ -7,6 +7,7 @@
7
*/
8
9
#include <linux/module.h>
10
+#include <linux/mod_devicetable.h>
11
#include <linux/rtc.h>
12
#include <linux/platform_device.h>
13
#include <linux/io.h>
@@ -148,9 +149,16 @@ static int ep93xx_rtc_probe(struct platform_device *pdev)
148
149
return devm_rtc_register_device(ep93xx_rtc->rtc);
150
}
151
152
+static const struct of_device_id ep93xx_rtc_of_ids[] = {
153
+ { .compatible = "cirrus,ep9301-rtc" },
154
+ { /* sentinel */ }
155
+};
156
+MODULE_DEVICE_TABLE(of, ep93xx_rtc_of_ids);
157
+
158
static struct platform_driver ep93xx_rtc_driver = {
159
.driver = {
160
.name = "ep93xx-rtc",
161
+ .of_match_table = ep93xx_rtc_of_ids,
162
},
163
.probe = ep93xx_rtc_probe,
164
};
0 commit comments