X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fi2c%2Fbusses%2Fi2c-sis96x.c;h=3cac6d43bce576208c402fb9494471f5b8ef0b3a;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=d605dee4de44a3d7fe55b007b2a3e09d7f9e44f0;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/i2c/busses/i2c-sis96x.c b/drivers/i2c/busses/i2c-sis96x.c index d605dee4d..3cac6d43b 100644 --- a/drivers/i2c/busses/i2c-sis96x.c +++ b/drivers/i2c/busses/i2c-sis96x.c @@ -51,9 +51,6 @@ */ #define SIS96x_VERSION "1.0.0" -/* SiS96x SMBus PCI device ID */ -#define PCI_DEVICE_ID_SI_SMBUS 0x16 - /* base address register in PCI config space */ #define SIS96x_BAR 0x04 @@ -267,17 +264,12 @@ static struct i2c_adapter sis96x_adapter = { }; static struct pci_device_id sis96x_ids[] = { - - { - .vendor = PCI_VENDOR_ID_SI, - .device = PCI_DEVICE_ID_SI_SMBUS, - .subvendor = PCI_ANY_ID, - .subdevice = PCI_ANY_ID, - }, - + { PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_SMBUS) }, { 0, } }; +MODULE_DEVICE_TABLE (pci, sis96x_ids); + static int __devinit sis96x_probe(struct pci_dev *dev, const struct pci_device_id *id) { @@ -348,7 +340,7 @@ static struct pci_driver sis96x_driver = { static int __init i2c_sis96x_init(void) { printk(KERN_INFO "i2c-sis96x version %s\n", SIS96x_VERSION); - return pci_module_init(&sis96x_driver); + return pci_register_driver(&sis96x_driver); } static void __exit i2c_sis96x_exit(void)