watchdog: Fix runtime PM imbalance on error
[linux-2.6-microblaze.git] / drivers / watchdog / omap_wdt.c
index 9b91882..1616f93 100644 (file)
@@ -273,6 +273,7 @@ static int omap_wdt_probe(struct platform_device *pdev)
 
        ret = watchdog_register_device(&wdev->wdog);
        if (ret) {
+               pm_runtime_put(wdev->dev);
                pm_runtime_disable(wdev->dev);
                return ret;
        }