projects
/
wrapfs-3.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72be3fc
)
i2c-ixp4xx: fix ") != 0))" typo
author
Alexey Dobriyan
<adobriyan@openvz.org>
Thu, 23 Nov 2006 00:33:16 +0000
(
01:33
+0100)
committer
Adrian Bunk
<bunk@stusta.de>
Thu, 23 Nov 2006 00:33:16 +0000
(
01:33
+0100)
i2c_bit_add_bus() returns -E;
-E != 0 => err = 1
probe fails with positive error code
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/i2c/busses/i2c-ixp4xx.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-ixp4xx.c
b/drivers/i2c/busses/i2c-ixp4xx.c
index e422d8b2d4d69536f618dc8e883907152b5119bd..ab3c7673df7f637db64fdd8816be81f02b463035 100644
(file)
--- a/
drivers/i2c/busses/i2c-ixp4xx.c
+++ b/
drivers/i2c/busses/i2c-ixp4xx.c
@@
-137,7
+137,8
@@
static int ixp4xx_i2c_probe(struct platform_device *plat_dev)
gpio_line_set(gpio->scl_pin, 0);
gpio_line_set(gpio->sda_pin, 0);
- if ((err = i2c_bit_add_bus(&drv_data->adapter) != 0)) {
+ err = i2c_bit_add_bus(&drv_data->adapter);
+ if (err != 0)
printk(KERN_ERR "ERROR: Could not install %s\n", plat_dev->dev.bus_id);
kfree(drv_data);