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

watchdog: imx2_wdt: expose module alias for loading from device-tree

Enable auto loading by udev when imx2_wdt is compiled as a module.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Niels de Vos and committed by
Wim Van Sebroeck
813296a1 280103e6

+1
+1
drivers/watchdog/imx2_wdt.c
··· 322 322 { .compatible = "fsl,imx21-wdt", }, 323 323 { /* sentinel */ } 324 324 }; 325 + MODULE_DEVICE_TABLE(of, imx2_wdt_dt_ids); 325 326 326 327 static struct platform_driver imx2_wdt_driver = { 327 328 .remove = __exit_p(imx2_wdt_remove),