Skip to content

Commit

Permalink
watchdog: omap_wdt: Add option nowayout
Browse files Browse the repository at this point in the history
Like other watchdog drivers, this patch adds new option nowayout
which overwrite WATCHDOG_NOWAYOUT.

Signed-off-by: Pali Rohar <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
pali authored and Wim Van Sebroeck committed Mar 1, 2013
1 parent 3048253 commit 2dd7b24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@

#include "omap_wdt.h"

static bool nowayout = WATCHDOG_NOWAYOUT;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");

static unsigned timer_margin;
module_param(timer_margin, uint, 0);
MODULE_PARM_DESC(timer_margin, "initial watchdog timeout (in seconds)");
Expand Down Expand Up @@ -201,7 +206,6 @@ static const struct watchdog_ops omap_wdt_ops = {
static int omap_wdt_probe(struct platform_device *pdev)
{
struct omap_wd_timer_platform_data *pdata = pdev->dev.platform_data;
bool nowayout = WATCHDOG_NOWAYOUT;
struct watchdog_device *omap_wdt;
struct resource *res, *mem;
struct omap_wdt_dev *wdev;
Expand Down

0 comments on commit 2dd7b24

Please sign in to comment.