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 a5aecca commit 6ec3f5eCopy full SHA for 6ec3f5e
drivers/rtc/rtc-m48t86.c
@@ -11,6 +11,7 @@
11
*/
12
13
#include <linux/module.h>
14
+#include <linux/mod_devicetable.h>
15
#include <linux/rtc.h>
16
#include <linux/platform_device.h>
17
#include <linux/bcd.h>
@@ -269,9 +270,16 @@ static int m48t86_rtc_probe(struct platform_device *pdev)
269
270
return 0;
271
}
272
273
+static const struct of_device_id m48t86_rtc_of_ids[] = {
274
+ { .compatible = "st,m48t86" },
275
+ { /* sentinel */ }
276
+};
277
+MODULE_DEVICE_TABLE(of, m48t86_rtc_of_ids);
278
+
279
static struct platform_driver m48t86_rtc_platform_driver = {
280
.driver = {
281
.name = "rtc-m48t86",
282
+ .of_match_table = m48t86_rtc_of_ids,
283
},
284
.probe = m48t86_rtc_probe,
285
};
0 commit comments