From 070b447b14c0ad37a1af94eedc980282abf3b8b0 Mon Sep 17 00:00:00 2001 From: Jeetesh Burman Date: Tue, 29 Dec 2015 15:29:40 +0530 Subject: watchdog: remove timeout setting in open call timeout should not be set as part of open call. It should be set as part of Probe if watchdog enabled on probe, Otherwise timeout should be 0 since watchdog is not enabled. Bug 200160105 Change-Id: I2bc0f35436dafd01d17e3ea2ec5459fd0d75af5a Signed-off-by: Jeetesh Burman Reviewed-on: http://git-master/r/927429 Reviewed-by: Bibek Basu GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro --- drivers/watchdog/tegra_wdt.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers') diff --git a/drivers/watchdog/tegra_wdt.c b/drivers/watchdog/tegra_wdt.c index 59a410038569..bf90d7f8c932 100644 --- a/drivers/watchdog/tegra_wdt.c +++ b/drivers/watchdog/tegra_wdt.c @@ -339,7 +339,6 @@ static int tegra_wdt_open(struct inode *inode, struct file *file) return -EBUSY; wdt->status |= WDT_ENABLED; - wdt->timeout = heartbeat; tegra_wdt_enable(wdt); file->private_data = wdt; return nonseekable_open(inode, file); -- cgit v1.2.3