diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-08-23 13:23:50 +0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-08-28 12:28:08 +0400 |
commit | 370257b287a3959f1d12398b51fb0c50063b4ca8 (patch) | |
tree | c4138b7c09480503aa9c84aec01219406d152bee /drivers/i2c/busses | |
parent | 7be60f2bfdd6c2c2c6273d2ff3ab6c81eec4a863 (diff) | |
download | linux-370257b287a3959f1d12398b51fb0c50063b4ca8.tar.xz |
i2c: ismt: add error return code in probe()
Return error code in the error case, and not success.
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-ismt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c index cd82eb44e4c4..8ed79a086f85 100644 --- a/drivers/i2c/busses/i2c-ismt.c +++ b/drivers/i2c/busses/i2c-ismt.c @@ -879,6 +879,7 @@ ismt_probe(struct pci_dev *pdev, const struct pci_device_id *id) DMA_BIT_MASK(32)) != 0)) { dev_err(&pdev->dev, "pci_set_dma_mask fail %p\n", pdev); + err = -ENODEV; goto fail; } } |