]> err.no Git - linux-2.6/blobdiff - drivers/macintosh/therm_pm72.c
Merge master.kernel.org:/home/rmk/linux-2.6-serial
[linux-2.6] / drivers / macintosh / therm_pm72.c
index 97807be6422bd09d668105ac326eb8779fcf943f..8d0958c38b6b8d76f41d717d77125bf46a9a3c19 100644 (file)
@@ -284,7 +284,6 @@ static int therm_pm72_detach(struct i2c_adapter *adapter);
 static struct i2c_driver therm_pm72_driver =
 {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "therm_pm72",
        },
        .attach_adapter = therm_pm72_attach,
@@ -1989,18 +1988,13 @@ static void fcu_lookup_fans(struct device_node *fcu_node)
 
 static int fcu_of_probe(struct of_device* dev, const struct of_device_id *match)
 {
-       int rc;
-
        state = state_detached;
 
        /* Lookup the fans in the device tree */
        fcu_lookup_fans(dev->node);
 
        /* Add the driver */
-       rc = i2c_add_driver(&therm_pm72_driver);
-       if (rc < 0)
-               return rc;
-       return 0;
+       return i2c_add_driver(&therm_pm72_driver);
 }
 
 static int fcu_of_remove(struct of_device* dev)