summaryrefslogtreecommitdiff
path: root/drivers/watchdog/mxc_wdt.c
diff options
context:
space:
mode:
authorAlejandro Gonzalez <alex.gonzalez@digi.com>2010-03-26 10:50:45 +0100
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-03-26 10:53:53 +0100
commit614eef6720756a1c6e4718668c83088b4807a55f (patch)
treec9aa48a8ec6ba85ac7423b94692d28b5e05beb2b /drivers/watchdog/mxc_wdt.c
parent6bd07c4b452992ae91dd933bc1fe34c7d665f219 (diff)
ccwmx51: The iMX51 does not define a wdog clock
Downgrade the warning message from the generic mxc watchdog driver to debug level. Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'drivers/watchdog/mxc_wdt.c')
-rw-r--r--drivers/watchdog/mxc_wdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/watchdog/mxc_wdt.c b/drivers/watchdog/mxc_wdt.c
index 234ddfc0ebb9..8c58cecb984f 100644
--- a/drivers/watchdog/mxc_wdt.c
+++ b/drivers/watchdog/mxc_wdt.c
@@ -277,7 +277,8 @@ static int __init mxc_wdt_probe(struct platform_device *pdev)
mxc_wdt_miscdev.this_device = &pdev->dev;
mxc_wdt_clk = clk_get(NULL, "wdog_clk");
- clk_enable(mxc_wdt_clk);
+ if( !IS_ERR(mxc_wdt_clk) )
+ clk_enable(mxc_wdt_clk);
ret = misc_register(&mxc_wdt_miscdev);
if (ret)