mfd: tps6586x: Add version detection
[firefly-linux-kernel-4.4.55.git] / drivers / watchdog / ts72xx_wdt.c
index df5dd55b9b3a11b678adff6550a385f9a10dab9e..09d4831aa61f8328b6291f97849c9adf06b62b0a 100644 (file)
@@ -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))