diff options
author | Jeetesh Burman <jburman@nvidia.com> | 2015-12-29 15:29:40 +0530 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2016-01-12 08:21:18 -0800 |
commit | 070b447b14c0ad37a1af94eedc980282abf3b8b0 (patch) | |
tree | 2f402ed680248331395bd9609585c9e7698276cb /drivers | |
parent | 6482c3dc3d31157a617880482fe95d90de68f1b2 (diff) |
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 <jburman@nvidia.com>
Reviewed-on: http://git-master/r/927429
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/watchdog/tegra_wdt.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |