projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be60f2
)
i2c: ismt: add error return code in probe()
author
Wolfram Sang
<wsa@the-dreams.de>
Fri, 23 Aug 2013 09:23:50 +0000
(11:23 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Wed, 28 Aug 2013 08:28:08 +0000
(10:28 +0200)
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>
drivers/i2c/busses/i2c-ismt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-ismt.c
b/drivers/i2c/busses/i2c-ismt.c
index cd82eb44e4c436a68a9b51ad99e8778a83a7dd56..8ed79a086f858012b0f22b291834a5fb357d075c 100644
(file)
--- 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;
}
}