Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Luis de Bethencourt <luis@debethencourt.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Luis de Bethencourt and committed by
Wim Van Sebroeck
c73318f4 097f70b3

+3
+1
drivers/watchdog/gef_wdt.c
··· 303 303 }, 304 304 {}, 305 305 }; 306 + MODULE_DEVICE_TABLE(of, gef_wdt_ids); 306 307 307 308 static struct platform_driver gef_wdt_driver = { 308 309 .driver = {
+1
drivers/watchdog/mena21_wdt.c
··· 253 253 { .compatible = "men,a021-wdt" }, 254 254 { }, 255 255 }; 256 + MODULE_DEVICE_TABLE(of, a21_wdt_ids); 256 257 257 258 static struct platform_driver a21_wdt_driver = { 258 259 .probe = a21_wdt_probe,
+1
drivers/watchdog/moxart_wdt.c
··· 168 168 { .compatible = "moxa,moxart-watchdog" }, 169 169 { }, 170 170 }; 171 + MODULE_DEVICE_TABLE(of, moxart_watchdog_match); 171 172 172 173 static struct platform_driver moxart_wdt_driver = { 173 174 .probe = moxart_wdt_probe,