Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-linus
[deliverable/linux.git] / drivers / watchdog / omap_wdt.c
index ebea6e66fba97087253c8f18ed6e744a10f9dad8..de911c7e477c2875fe3633bce5a72a6b45fb95c0 100644 (file)
@@ -55,6 +55,11 @@ MODULE_PARM_DESC(timer_margin, "initial watchdog timeout (in seconds)");
 
 #define to_omap_wdt_dev(_wdog) container_of(_wdog, struct omap_wdt_dev, wdog)
 
+static bool early_enable;
+module_param(early_enable, bool, 0);
+MODULE_PARM_DESC(early_enable,
+       "Watchdog is started on module insertion (default=0)");
+
 struct omap_wdt_dev {
        struct watchdog_device wdog;
        void __iomem    *base;          /* physical */
@@ -279,6 +284,9 @@ static int omap_wdt_probe(struct platform_device *pdev)
 
        pm_runtime_put_sync(wdev->dev);
 
+       if (early_enable)
+               omap_wdt_start(&wdev->wdog);
+
        return 0;
 }
 
This page took 0.026684 seconds and 5 git commands to generate.