From: Andy Shevchenko Date: Wed, 16 Sep 2015 14:24:01 +0000 (+0300) Subject: i2c: ismt: propagate actual error code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6befa6dd8de73fd726f3b69b63e4aa7b17a25531;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c: ismt: propagate actual error code Propagate actual return code when requesting interrupt fails. Signed-off-by: Andy Shevchenko Reviewed-by: Mika Westerberg Signed-off-by: Wolfram Sang --- 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: