Skip to content
Snippets Groups Projects
Commit 370257b2 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

i2c: ismt: add error return code in probe()


Return error code in the error case, and not success.

Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 7be60f2b
No related branches found
No related tags found
No related merge requests found
...@@ -879,6 +879,7 @@ ismt_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -879,6 +879,7 @@ ismt_probe(struct pci_dev *pdev, const struct pci_device_id *id)
DMA_BIT_MASK(32)) != 0)) { DMA_BIT_MASK(32)) != 0)) {
dev_err(&pdev->dev, "pci_set_dma_mask fail %p\n", dev_err(&pdev->dev, "pci_set_dma_mask fail %p\n",
pdev); pdev);
err = -ENODEV;
goto fail; goto fail;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment