i2c: ismt: propagate actual error code

Propagate actual return code when requesting interrupt fails.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Andy Shevchenko 2015-09-16 17:24:01 +03:00 committed by Wolfram Sang
parent f92d155d3e
commit 6befa6dd8d
1 changed files with 1 additions and 1 deletions

View File

@ -817,7 +817,7 @@ intx:
priv);
if (err) {
dev_err(&priv->pci_dev->dev, "no usable interrupts\n");
return -ENODEV;
return err;
}
done: