projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2703c55
)
wdt: use two clock name that is wdt and pclk_wdt for all soc
author
hhb
<hhb@rock-chips.com>
Tue, 6 Aug 2013 06:53:50 +0000
(14:53 +0800)
committer
hhb
<hhb@rock-chips.com>
Tue, 6 Aug 2013 06:53:50 +0000
(14:53 +0800)
drivers/watchdog/rk29_wdt.c
patch
|
blob
|
history
diff --git
a/drivers/watchdog/rk29_wdt.c
b/drivers/watchdog/rk29_wdt.c
index 1f450a5e4161003c94b9776982d155de7eab6d67..ff9c51690ddc7a12b7bbbc5d85026b20fa127abb 100644
(file)
--- a/
drivers/watchdog/rk29_wdt.c
+++ b/
drivers/watchdog/rk29_wdt.c
@@
-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