ide: use ide_pci_is_in_compatibility_mode() helper in setup-pci.c

There should be no functional changes caused by this patch.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 9600dcf1
...@@ -519,8 +519,7 @@ static int do_ide_setup_pci_device(struct pci_dev *dev, ...@@ -519,8 +519,7 @@ static int do_ide_setup_pci_device(struct pci_dev *dev,
if (ret < 0) if (ret < 0)
goto out; goto out;
/* Is it an "IDE storage" device in non-PCI mode? */ if (ide_pci_is_in_compatibility_mode(dev)) {
if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE && (dev->class & 5) != 5) {
if (noisy) if (noisy)
printk(KERN_INFO "%s %s: not 100%% native mode: will " printk(KERN_INFO "%s %s: not 100%% native mode: will "
"probe irqs later\n", d->name, pci_name(dev)); "probe irqs later\n", d->name, pci_name(dev));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment