aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-09-24 19:43:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-09-24 19:43:44 -0400
commit26591188d69192d5babeadde129dcfb6cbf9e6b7 (patch)
tree5630b967e8410c35f299f7ad270a3b68bceb0da5
parentc0f4d6d4b14a75a341d972ff73fb9740e1ceb634 (diff)
parent17a172fe112a15dc9cd694d84983c51e1dc6bf34 (diff)
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
* 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6: i2c: Fix mailing lists in two MAINTAINERS entries i2c-dev: Return correct error code on class_create() failure i2c-powermac: Fix section for probe and remove functions
-rw-r--r--MAINTAINERS4
-rw-r--r--drivers/i2c/busses/i2c-powermac.c4
-rw-r--r--drivers/i2c/i2c-dev.c4
3 files changed, 7 insertions, 5 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index 42ebbfdc350b..3596d1782264 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1984,7 +1984,7 @@ S: Maintained
1984I2C/SMBUS STUB DRIVER 1984I2C/SMBUS STUB DRIVER
1985P: Mark M. Hoffman 1985P: Mark M. Hoffman
1986M: mhoffman@lightlink.com 1986M: mhoffman@lightlink.com
1987L: lm-sensors@lm-sensors.org 1987L: i2c@lm-sensors.org
1988S: Maintained 1988S: Maintained
1989 1989
1990I2C SUBSYSTEM 1990I2C SUBSYSTEM
@@ -3726,7 +3726,7 @@ S: Maintained
3726SIS 96X I2C/SMBUS DRIVER 3726SIS 96X I2C/SMBUS DRIVER
3727P: Mark M. Hoffman 3727P: Mark M. Hoffman
3728M: mhoffman@lightlink.com 3728M: mhoffman@lightlink.com
3729L: lm-sensors@lm-sensors.org 3729L: i2c@lm-sensors.org
3730S: Maintained 3730S: Maintained
3731 3731
3732SIS FRAMEBUFFER DRIVER 3732SIS FRAMEBUFFER DRIVER
diff --git a/drivers/i2c/busses/i2c-powermac.c b/drivers/i2c/busses/i2c-powermac.c
index 22f6d5c00d80..0e7b1c6724aa 100644
--- a/drivers/i2c/busses/i2c-powermac.c
+++ b/drivers/i2c/busses/i2c-powermac.c
@@ -180,7 +180,7 @@ static const struct i2c_algorithm i2c_powermac_algorithm = {
180}; 180};
181 181
182 182
183static int i2c_powermac_remove(struct platform_device *dev) 183static int __devexit i2c_powermac_remove(struct platform_device *dev)
184{ 184{
185 struct i2c_adapter *adapter = platform_get_drvdata(dev); 185 struct i2c_adapter *adapter = platform_get_drvdata(dev);
186 struct pmac_i2c_bus *bus = i2c_get_adapdata(adapter); 186 struct pmac_i2c_bus *bus = i2c_get_adapdata(adapter);
@@ -200,7 +200,7 @@ static int i2c_powermac_remove(struct platform_device *dev)
200} 200}
201 201
202 202
203static int __devexit i2c_powermac_probe(struct platform_device *dev) 203static int __devinit i2c_powermac_probe(struct platform_device *dev)
204{ 204{
205 struct pmac_i2c_bus *bus = dev->dev.platform_data; 205 struct pmac_i2c_bus *bus = dev->dev.platform_data;
206 struct device_node *parent = NULL; 206 struct device_node *parent = NULL;
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c
index af4491fa7e34..307d976c9b69 100644
--- a/drivers/i2c/i2c-dev.c
+++ b/drivers/i2c/i2c-dev.c
@@ -583,8 +583,10 @@ static int __init i2c_dev_init(void)
583 goto out; 583 goto out;
584 584
585 i2c_dev_class = class_create(THIS_MODULE, "i2c-dev"); 585 i2c_dev_class = class_create(THIS_MODULE, "i2c-dev");
586 if (IS_ERR(i2c_dev_class)) 586 if (IS_ERR(i2c_dev_class)) {
587 res = PTR_ERR(i2c_dev_class);
587 goto out_unreg_chrdev; 588 goto out_unreg_chrdev;
589 }
588 590
589 res = i2c_add_driver(&i2cdev_driver); 591 res = i2c_add_driver(&i2cdev_driver);
590 if (res) 592 if (res)