mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
wdt: use two clock name that is wdt and pclk_wdt for all soc
This commit is contained in:
parent
2703c55721
commit
d976e7cdcc
|
|
@ -374,6 +374,9 @@ static int __devinit rk29_wdt_probe(struct platform_device *pdev)
|
|||
#endif
|
||||
|
||||
wdt_clock = clk_get(&pdev->dev, "wdt");
|
||||
if (IS_ERR(wdt_clock)) {
|
||||
wdt_clock = clk_get(&pdev->dev, "pclk_wdt");
|
||||
}
|
||||
if (IS_ERR(wdt_clock)) {
|
||||
dev_err(dev, "failed to find watchdog clock source\n");
|
||||
ret = PTR_ERR(wdt_clock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user