Commit 6ec3f5ec authored by Nikita Shubin's avatar Nikita Shubin Committed by Alexandre Belloni
parent a5aeccab
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/rtc.h> #include <linux/rtc.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/bcd.h> #include <linux/bcd.h>
...@@ -269,9 +270,16 @@ static int m48t86_rtc_probe(struct platform_device *pdev) ...@@ -269,9 +270,16 @@ static int m48t86_rtc_probe(struct platform_device *pdev)
return 0; 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 = { static struct platform_driver m48t86_rtc_platform_driver = {
.driver = { .driver = {
.name = "rtc-m48t86", .name = "rtc-m48t86",
.of_match_table = m48t86_rtc_of_ids,
}, },
.probe = m48t86_rtc_probe, .probe = m48t86_rtc_probe,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment