wdt: use two clock name that is wdt and pclk_wdt for all soc
authorhhb <hhb@rock-chips.com>
Tue, 6 Aug 2013 06:53:50 +0000 (14:53 +0800)
committerhhb <hhb@rock-chips.com>
Tue, 6 Aug 2013 06:53:50 +0000 (14:53 +0800)
drivers/watchdog/rk29_wdt.c

index 1f450a5e4161003c94b9776982d155de7eab6d67..ff9c51690ddc7a12b7bbbc5d85026b20fa127abb 100644 (file)
@@ -374,6 +374,9 @@ static int __devinit rk29_wdt_probe(struct platform_device *pdev)
 #endif\r
 \r
        wdt_clock = clk_get(&pdev->dev, "wdt");\r
+       if (IS_ERR(wdt_clock)) {\r
+               wdt_clock = clk_get(&pdev->dev, "pclk_wdt");\r
+       }\r
        if (IS_ERR(wdt_clock)) {\r
                dev_err(dev, "failed to find watchdog clock source\n");\r
                ret = PTR_ERR(wdt_clock);\r