提交 c73318f4 编写于 作者: L Luis de Bethencourt 提交者: Wim Van Sebroeck

watchdog: Fix module autoload for OF platform driver

These platform drivers have a OF device ID table but the OF module
alias information is not created so module autoloading won't work.
Signed-off-by: NLuis de Bethencourt <luis@debethencourt.com>
Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 097f70b3
...@@ -303,6 +303,7 @@ static const struct of_device_id gef_wdt_ids[] = { ...@@ -303,6 +303,7 @@ static const struct of_device_id gef_wdt_ids[] = {
}, },
{}, {},
}; };
MODULE_DEVICE_TABLE(of, gef_wdt_ids);
static struct platform_driver gef_wdt_driver = { static struct platform_driver gef_wdt_driver = {
.driver = { .driver = {
......
...@@ -253,6 +253,7 @@ static const struct of_device_id a21_wdt_ids[] = { ...@@ -253,6 +253,7 @@ static const struct of_device_id a21_wdt_ids[] = {
{ .compatible = "men,a021-wdt" }, { .compatible = "men,a021-wdt" },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, a21_wdt_ids);
static struct platform_driver a21_wdt_driver = { static struct platform_driver a21_wdt_driver = {
.probe = a21_wdt_probe, .probe = a21_wdt_probe,
......
...@@ -168,6 +168,7 @@ static const struct of_device_id moxart_watchdog_match[] = { ...@@ -168,6 +168,7 @@ static const struct of_device_id moxart_watchdog_match[] = {
{ .compatible = "moxa,moxart-watchdog" }, { .compatible = "moxa,moxart-watchdog" },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, moxart_watchdog_match);
static struct platform_driver moxart_wdt_driver = { static struct platform_driver moxart_wdt_driver = {
.probe = moxart_wdt_probe, .probe = moxart_wdt_probe,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册