aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-06 11:20:58 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-06 11:20:58 -0500
commit8c6de94cfa07cf9f4651edd7e541ed4841c9f201 (patch)
tree21bdc54d6b9222aa4baa3d46171d646faae1be08 /drivers/ide
parent9600dcf1347d304cf4dff34ef50569d6584b6968 (diff)
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: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/setup-pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c
index 09f820af379d..bc37dff8c675 100644
--- a/drivers/ide/setup-pci.c
+++ b/drivers/ide/setup-pci.c
@@ -519,8 +519,7 @@ static int do_ide_setup_pci_device(struct pci_dev *dev,
519 if (ret < 0) 519 if (ret < 0)
520 goto out; 520 goto out;
521 521
522 /* Is it an "IDE storage" device in non-PCI mode? */ 522 if (ide_pci_is_in_compatibility_mode(dev)) {
523 if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE && (dev->class & 5) != 5) {
524 if (noisy) 523 if (noisy)
525 printk(KERN_INFO "%s %s: not 100%% native mode: will " 524 printk(KERN_INFO "%s %s: not 100%% native mode: will "
526 "probe irqs later\n", d->name, pci_name(dev)); 525 "probe irqs later\n", d->name, pci_name(dev));