mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
wdt: use two clock name that is wdt and pclk_wdt for all soc
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user