Changeset 1768
- Timestamp:
- 06/07/03 21:53:21 (10 years ago)
- Location:
- lm-sensors/trunk/kernel/busses
- Files:
-
- 4 modified
-
i2c-ali1535.c (modified) (3 diffs)
-
i2c-hydra.c (modified) (1 diff)
-
i2c-savage4.c (modified) (1 diff)
-
i2c-sis5595.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-ali1535.c
r1705 r1768 148 148 newer kernels with the real PCI interface. In compat.h some things are 149 149 defined to make the transition easier. */ 150 int ali1535_setup( void)150 int ali1535_setup(struct pci_dev *ALI1535_dev) 151 151 { 152 152 int error_return = 0; 153 153 unsigned char temp; 154 155 struct pci_dev *ALI1535_dev;156 157 /* First check whether we can access PCI at all */158 if (pci_present() == 0) {159 printk("i2c-ali1535.o: Error: No PCI-bus found!\n");160 error_return = -ENODEV;161 goto END;162 }163 164 /* Look for the ALI1535, M7101 device */165 ALI1535_dev = NULL;166 ALI1535_dev = pci_find_device(PCI_VENDOR_ID_AL,167 PCI_DEVICE_ID_AL_M7101,168 ALI1535_dev);169 170 if (ALI1535_dev == NULL) {171 printk("i2c-ali1535.o: Error: Can't detect ali1535!\n");172 error_return = -ENODEV;173 goto END;174 }175 154 176 155 /* Check the following things: … … 565 544 566 545 static struct pci_device_id ali1535_ids[] __devinitdata = { 546 { 547 .vendor = PCI_VENDOR_ID_AL, 548 .device = PCI_DEVICE_ID_AL_M7101, 549 .subvendor = PCI_ANY_ID, 550 .subdevice = PCI_ANY_ID, 551 }, 567 552 { 0, } 568 553 }; … … 570 555 static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id) 571 556 { 572 if (ali1535_setup( )) {557 if (ali1535_setup(dev)) { 573 558 printk 574 559 ("i2c-ali1535.o: ALI1535 not detected, module not inserted.\n"); -
lm-sensors/trunk/kernel/busses/i2c-hydra.c
r1705 r1768 118 118 }; 119 119 120 121 /* PCI device */122 #define VENDOR PCI_VENDOR_ID_APPLE123 #define DEVICE PCI_DEVICE_ID_APPLE_HYDRA124 125 120 static struct pci_device_id hydra_ids[] __devinitdata = { 121 { 122 .vendor = PCI_VENDOR_ID_APPLE, 123 .device = PCI_DEVICE_ID_APPLE_HYDRA, 124 .subvendor = PCI_ANY_ID, 125 .subdevice = PCI_ANY_ID, 126 }, 126 127 { 0, } 127 128 }; -
lm-sensors/trunk/kernel/busses/i2c-savage4.c
r1705 r1768 168 168 }; 169 169 170 #if 0171 PCI_VENDOR_ID_S3, PCI_CHIP_SAVAGE4,172 PCI_VENDOR_ID_S3, PCI_CHIP_SAVAGE2000,173 #endif174 175 170 static struct pci_device_id savage4_ids[] __devinitdata = { 171 { 172 .vendor = PCI_VENDOR_ID_S3, 173 .device = PCI_CHIP_SAVAGE4, 174 .subvendor = PCI_ANY_ID, 175 .subdevice = PCI_ANY_ID, 176 }, 177 { 178 .vendor = PCI_VENDOR_ID_S3, 179 .device = PCI_CHIP_SAVAGE2000, 180 .subvendor = PCI_ANY_ID, 181 .subdevice = PCI_ANY_ID, 182 }, 176 183 { 0, } 177 184 }; -
lm-sensors/trunk/kernel/busses/i2c-sis5595.c
r1708 r1768 142 142 newer kernels with the real PCI interface. In compat.h some things are 143 143 defined to make the transition easier. */ 144 int sis5595_setup( void)144 int sis5595_setup(struct pci_dev *SIS5595_dev) 145 145 { 146 146 u16 a; 147 147 u8 val; 148 struct pci_dev *SIS5595_dev;149 148 int *i; 150 151 /* First check whether we can access PCI at all */152 if (pci_present() == 0) {153 printk("i2c-sis5595.o: Error: No PCI-bus found!\n");154 return -ENODEV;155 }156 157 /* Look for the SIS5595 */158 SIS5595_dev = NULL;159 if (!(SIS5595_dev = pci_find_device(PCI_VENDOR_ID_SI,160 PCI_DEVICE_ID_SI_503,161 SIS5595_dev))) {162 printk("i2c-sis5595.o: Error: Can't detect SIS5595!\n");163 return -ENODEV;164 }165 149 166 150 /* Look for imposters */ … … 426 410 427 411 static struct pci_device_id sis5595_ids[] __devinitdata = { 412 { 413 .vendor = PCI_VENDOR_ID_SI, 414 .device = PCI_DEVICE_ID_SI_503, 415 .subvendor = PCI_ANY_ID, 416 .subdevice = PCI_ANY_ID, 417 }, 428 418 { 0, } 429 419 }; … … 432 422 { 433 423 434 if (sis5595_setup( )) {424 if (sis5595_setup(dev)) { 435 425 printk 436 426 ("i2c-sis5595.o: SIS5595 not detected, module not inserted.\n");
