]> err.no Git - linux-2.6/blobdiff - drivers/macintosh/therm_adt746x.c
[PATCH] IP27: Really set PCI64_ATTR_VIRTUAL, not PCI64_ATTR_PREC.
[linux-2.6] / drivers / macintosh / therm_adt746x.c
index 5e1f5e9653cb36d1b23e86c5d764ebd13f74dc80..5282fec17075be859759a29c0eeb8662603f016e 100644 (file)
@@ -176,9 +176,9 @@ detach_thermostat(struct i2c_adapter *adapter)
 }
 
 static struct i2c_driver thermostat_driver = {  
-       .owner          = THIS_MODULE,
-       .name           = "therm_adt746x",
-       .flags          = I2C_DF_NOTIFY,
+       .driver = {
+               .name   = "therm_adt746x",
+       },
        .attach_adapter = attach_thermostat,
        .detach_adapter = detach_thermostat,
 };
@@ -627,8 +627,8 @@ thermostat_init(void)
        if(therm_type == ADT7460)
                device_create_file(&of_dev->dev, &dev_attr_sensor2_fan_speed);
 
-#ifndef CONFIG_I2C_KEYWEST
-       request_module("i2c-keywest");
+#ifndef CONFIG_I2C_POWERMAC
+       request_module("i2c-powermac");
 #endif
 
        return i2c_add_driver(&thermostat_driver);