diff -Naur linux-2.6.0-test1/drivers/i2c/busses/i2c-nforce2.c linux-2.6.0-test1.new/drivers/i2c/busses/i2c-nforce2.c --- linux-2.6.0-test1/drivers/i2c/busses/i2c-nforce2.c 2003-07-23 09:49:38.093802760 -0300 +++ linux-2.6.0-test1.new/drivers/i2c/busses/i2c-nforce2.c 2003-07-23 09:58:07.000000000 -0300 @@ -48,9 +48,6 @@ MODULE_DESCRIPTION("nForce2 SMBus driver"); -#ifndef PCI_DEVICE_ID_NVIDIA_NFORCE2_SMBUS -#define PCI_DEVICE_ID_NVIDIA_NFORCE2_SMBUS 0x0064 -#endif /* TODO: sync with lm-sensors */ #ifndef I2C_HW_SMBUS_NFORCE2 #define I2C_HW_SMBUS_NFORCE2 0x0c @@ -120,16 +117,6 @@ .functionality = nforce2_func, }; -static struct i2c_adapter nforce2_adapter = { - .owner = THIS_MODULE, - .id = I2C_ALGO_SMBUS | I2C_HW_SMBUS_NFORCE2, - .class = I2C_ADAP_CLASS_SMBUS, - .algo = &smbus_algorithm, - .dev = { - .name = "unset", - }, -}; - #if 0 /* Internally used pause function */ @@ -334,13 +321,12 @@ smbus->base, smbus->base+smbus->size-1, name); return -1; } -/* + smbus->adapter.owner = THIS_MODULE; smbus->adapter.id = I2C_ALGO_SMBUS | I2C_HW_SMBUS_NFORCE2; smbus->adapter.algo = &smbus_algorithm; smbus->adapter.algo_data = smbus; -*/ - smbus->adapter = nforce2_adapter; + smbus->adapter.class = I2C_ADAP_CLASS_SMBUS; smbus->adapter.dev.parent = &dev->dev; snprintf(smbus->adapter.dev.name, DEVICE_NAME_SIZE, "SMBus nForce2 adapter at %04x", smbus->base); diff -Naur linux-2.6.0-test1/include/linux/pci_ids.h linux-2.6.0-test1.new/include/linux/pci_ids.h --- linux-2.6.0-test1/include/linux/pci_ids.h 2003-07-23 10:04:27.268627640 -0300 +++ linux-2.6.0-test1.new/include/linux/pci_ids.h 2003-07-23 09:52:12.000000000 -0300 @@ -1024,6 +1024,7 @@ #define PCI_DEVICE_ID_NVIDIA_NFORCE 0x01a4 #define PCI_DEVICE_ID_NVIDIA_NFORCE_IDE 0x01bc #define PCI_DEVICE_ID_NVIDIA_NFORCE2 0x01e0 +#define PCI_DEVICE_ID_NVIDIA_NFORCE2_SMBUS 0x0064 #define PCI_DEVICE_ID_NVIDIA_GEFORCE3 0x0200 #define PCI_DEVICE_ID_NVIDIA_GEFORCE3_1 0x0201 #define PCI_DEVICE_ID_NVIDIA_GEFORCE3_2 0x0202