Skip to content

Commit cf38e76

Browse files
raagjadavWim Van Sebroeck
authored andcommitted
watchdog: intel-mid_wdt: add MODULE_ALIAS() to allow auto-load
When built with CONFIG_INTEL_MID_WATCHDOG=m, currently the driver needs to be loaded manually, for the lack of module alias. This causes unintended resets in cases where watchdog timer is set-up by bootloader and the driver is not explicitly loaded. Add MODULE_ALIAS() to load the driver automatically at boot and avoid this issue. Fixes: 87a1ef8 ("watchdog: add Intel MID watchdog driver support") Signed-off-by: Raag Jadav <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 486a64b commit cf38e76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/intel-mid_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,4 @@ module_platform_driver(mid_wdt_driver);
203203
MODULE_AUTHOR("David Cohen <[email protected]>");
204204
MODULE_DESCRIPTION("Watchdog Driver for Intel MID platform");
205205
MODULE_LICENSE("GPL");
206+
MODULE_ALIAS("platform:intel_mid_wdt");

0 commit comments

Comments
 (0)