diff options
-rw-r--r-- | drivers/watchdog/asm9260_wdt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/watchdog/asm9260_wdt.c b/drivers/watchdog/asm9260_wdt.c index 7dd0da644a7f..2cf56b459d84 100644 --- a/drivers/watchdog/asm9260_wdt.c +++ b/drivers/watchdog/asm9260_wdt.c | |||
@@ -292,14 +292,14 @@ static int asm9260_wdt_probe(struct platform_device *pdev) | |||
292 | if (IS_ERR(priv->iobase)) | 292 | if (IS_ERR(priv->iobase)) |
293 | return PTR_ERR(priv->iobase); | 293 | return PTR_ERR(priv->iobase); |
294 | 294 | ||
295 | ret = asm9260_wdt_get_dt_clks(priv); | ||
296 | if (ret) | ||
297 | return ret; | ||
298 | |||
299 | priv->rst = devm_reset_control_get_exclusive(&pdev->dev, "wdt_rst"); | 295 | priv->rst = devm_reset_control_get_exclusive(&pdev->dev, "wdt_rst"); |
300 | if (IS_ERR(priv->rst)) | 296 | if (IS_ERR(priv->rst)) |
301 | return PTR_ERR(priv->rst); | 297 | return PTR_ERR(priv->rst); |
302 | 298 | ||
299 | ret = asm9260_wdt_get_dt_clks(priv); | ||
300 | if (ret) | ||
301 | return ret; | ||
302 | |||
303 | wdd = &priv->wdd; | 303 | wdd = &priv->wdd; |
304 | wdd->info = &asm9260_wdt_ident; | 304 | wdd->info = &asm9260_wdt_ident; |
305 | wdd->ops = &asm9260_wdt_ops; | 305 | wdd->ops = &asm9260_wdt_ops; |