summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2013-07-29 03:38:18 -0400
committerWim Van Sebroeck <wim@iguana.be>2013-11-17 13:34:09 -0500
commit813296a1a209baaf1471c360591946edd795bcbe (patch)
tree1714d6e379b79789265bc5f38cc393e11954e865 /drivers/watchdog
parent280103e6b5de6ae1e23d9067202cdd67dd06b490 (diff)
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/imx2_wdt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c
index 693ac3f4de5a..17680aa6cb32 100644
--- a/drivers/watchdog/imx2_wdt.c
+++ b/drivers/watchdog/imx2_wdt.c
@@ -322,6 +322,7 @@ static const struct of_device_id imx2_wdt_dt_ids[] = {
322 { .compatible = "fsl,imx21-wdt", }, 322 { .compatible = "fsl,imx21-wdt", },
323 { /* sentinel */ } 323 { /* sentinel */ }
324}; 324};
325MODULE_DEVICE_TABLE(of, imx2_wdt_dt_ids);
325 326
326static struct platform_driver imx2_wdt_driver = { 327static struct platform_driver imx2_wdt_driver = {
327 .remove = __exit_p(imx2_wdt_remove), 328 .remove = __exit_p(imx2_wdt_remove),