summaryrefslogtreecommitdiff
path: root/drivers/watchdog/ts72xx_wdt.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-10-14 09:32:48 -0700
committerWim Van Sebroeck <wim@iguana.be>2013-11-17 19:38:02 +0100
commit67b9fbdf3602dfd525371d7b1f49346f1d11d37d (patch)
tree784bf2156e2d429af6e1ce7d218acd4d228aaab7 /drivers/watchdog/ts72xx_wdt.c
parent5412df0bda90a2bdcef2771849ad5472b9ef8100 (diff)
watchdog: ts72xx_wdt: Propagate return value from timeout_to_regval
timeout_to_regval() returns a valid error code. Might as well use it. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/ts72xx_wdt.c')
-rw-r--r--drivers/watchdog/ts72xx_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c
index df5dd55b9b3a..09d4831aa61f 100644
--- a/drivers/watchdog/ts72xx_wdt.c
+++ b/drivers/watchdog/ts72xx_wdt.c
@@ -192,7 +192,7 @@ static int ts72xx_wdt_open(struct inode *inode, struct file *file)
dev_err(&wdt->pdev->dev,
"failed to convert timeout (%d) to register value\n",
timeout);
- return -EINVAL;
+ return regval;
}
if (mutex_lock_interruptible(&wdt->lock))