diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-10-14 09:32:48 -0700 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-11-17 19:38:02 +0100 |
commit | 67b9fbdf3602dfd525371d7b1f49346f1d11d37d (patch) | |
tree | 784bf2156e2d429af6e1ce7d218acd4d228aaab7 /drivers/watchdog | |
parent | 5412df0bda90a2bdcef2771849ad5472b9ef8100 (diff) | |
download | blackbird-op-linux-67b9fbdf3602dfd525371d7b1f49346f1d11d37d.tar.gz blackbird-op-linux-67b9fbdf3602dfd525371d7b1f49346f1d11d37d.zip |
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')
-rw-r--r-- | drivers/watchdog/ts72xx_wdt.c | 2 |
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)) |