|
@@ -237,10 +237,12 @@ static int __devinit generic_init_one(struct pci_dev *dev, const struct pci_devi
|
|
if (dev->vendor == PCI_VENDOR_ID_JMICRON && PCI_FUNC(dev->devfn) != 1)
|
|
if (dev->vendor == PCI_VENDOR_ID_JMICRON && PCI_FUNC(dev->devfn) != 1)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
- pci_read_config_word(dev, PCI_COMMAND, &command);
|
|
|
|
- if (!(command & PCI_COMMAND_IO)) {
|
|
|
|
- printk(KERN_INFO "Skipping disabled %s IDE controller.\n", d->name);
|
|
|
|
- goto out;
|
|
|
|
|
|
+ if (dev->vendor != PCI_VENDOR_ID_JMICRON) {
|
|
|
|
+ pci_read_config_word(dev, PCI_COMMAND, &command);
|
|
|
|
+ if (!(command & PCI_COMMAND_IO)) {
|
|
|
|
+ printk(KERN_INFO "Skipping disabled %s IDE controller.\n", d->name);
|
|
|
|
+ goto out;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
ret = ide_setup_pci_device(dev, d);
|
|
ret = ide_setup_pci_device(dev, d);
|
|
out:
|
|
out:
|