Merge tag '6.6-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6
[sfrench/cifs-2.6.git] / drivers / rtc / rtc-m48t86.c
index 481c9525b1ddbfdf709165d87e911f9cfa34b295..dd4a62e2d39c73b1c8c3f50a59fd4fffc0b45105 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/rtc.h>
 #include <linux/platform_device.h>
 #include <linux/bcd.h>
@@ -269,9 +270,16 @@ static int m48t86_rtc_probe(struct platform_device *pdev)
        return 0;
 }
 
+static const struct of_device_id m48t86_rtc_of_ids[] = {
+       { .compatible = "st,m48t86" },
+       { /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(of, m48t86_rtc_of_ids);
+
 static struct platform_driver m48t86_rtc_platform_driver = {
        .driver         = {
                .name   = "rtc-m48t86",
+               .of_match_table = m48t86_rtc_of_ids,
        },
        .probe          = m48t86_rtc_probe,
 };