diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-07-18 07:15:21 +0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2011-07-27 01:19:16 +0400 |
commit | f5a427eedeead2be82561497a12788bd1f0c07d3 (patch) | |
tree | c983a6b9a761dbb4a635b24766a8c39d9a894731 /drivers/watchdog | |
parent | 9487a9cc7140ef88d532c989570ee77436ede1e0 (diff) | |
download | linux-f5a427eedeead2be82561497a12788bd1f0c07d3.tar.xz |
watchdog: imx2_wdt: add device tree probe support
Adds device tree probe support for imx2_wdt driver.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/imx2_wdt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c index 86f7cac1026c..b8ef2c6dca7c 100644 --- a/drivers/watchdog/imx2_wdt.c +++ b/drivers/watchdog/imx2_wdt.c @@ -329,12 +329,18 @@ static void imx2_wdt_shutdown(struct platform_device *pdev) } } +static const struct of_device_id imx2_wdt_dt_ids[] = { + { .compatible = "fsl,imx21-wdt", }, + { /* sentinel */ } +}; + static struct platform_driver imx2_wdt_driver = { .remove = __exit_p(imx2_wdt_remove), .shutdown = imx2_wdt_shutdown, .driver = { .name = DRIVER_NAME, .owner = THIS_MODULE, + .of_match_table = imx2_wdt_dt_ids, }, }; |