Skip to content

Commit

Permalink
watchdog: Fix module autoload for OF platform driver
Browse files Browse the repository at this point in the history
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: Luis de Bethencourt <luis@debethencourt.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Luis de Bethencourt authored and Wim Van Sebroeck committed Sep 28, 2015
1 parent 097f70b commit c73318f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/watchdog/gef_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
.driver = {
Expand Down
1 change: 1 addition & 0 deletions drivers/watchdog/mena21_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ static const struct of_device_id a21_wdt_ids[] = {
{ .compatible = "men,a021-wdt" },
{ },
};
MODULE_DEVICE_TABLE(of, a21_wdt_ids);

static struct platform_driver a21_wdt_driver = {
.probe = a21_wdt_probe,
Expand Down
1 change: 1 addition & 0 deletions drivers/watchdog/moxart_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ static const struct of_device_id moxart_watchdog_match[] = {
{ .compatible = "moxa,moxart-watchdog" },
{ },
};
MODULE_DEVICE_TABLE(of, moxart_watchdog_match);

static struct platform_driver moxart_wdt_driver = {
.probe = moxart_wdt_probe,
Expand Down

0 comments on commit c73318f

Please sign in to comment.