summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-09-16 17:24:01 +0300
committerWolfram Sang <wsa@the-dreams.de>2015-10-20 17:51:41 +0300
commit6befa6dd8de73fd726f3b69b63e4aa7b17a25531 (patch)
tree823df617f5ee6ed622835931e10aee6214d03c36 /drivers/i2c
parentf92d155d3eb05e74380383450eb86ba995c8d766 (diff)
downloadlinux-6befa6dd8de73fd726f3b69b63e4aa7b17a25531.tar.xz
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-ismt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c
index 3cc20f35ae8a..21cd4f6636bf 100644
--- a/drivers/i2c/busses/i2c-ismt.c
+++ b/drivers/i2c/busses/i2c-ismt.c
@@ -817,7 +817,7 @@ intx:
priv);
if (err) {
dev_err(&priv->pci_dev->dev, "no usable interrupts\n");
- return -ENODEV;
+ return err;
}
done: