mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
280103e6b5
commit
813296a1a2
1 changed files with 1 additions and 0 deletions
|
@ -322,6 +322,7 @@ static const struct of_device_id imx2_wdt_dt_ids[] = {
|
||||||
{ .compatible = "fsl,imx21-wdt", },
|
{ .compatible = "fsl,imx21-wdt", },
|
||||||
{ /* sentinel */ }
|
{ /* sentinel */ }
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, imx2_wdt_dt_ids);
|
||||||
|
|
||||||
static struct platform_driver imx2_wdt_driver = {
|
static struct platform_driver imx2_wdt_driver = {
|
||||||
.remove = __exit_p(imx2_wdt_remove),
|
.remove = __exit_p(imx2_wdt_remove),
|
||||||
|
|
Loading…
Add table
Reference in a new issue