diff options
Diffstat (limited to 'drivers/ide/setup-pci.c')
-rw-r--r-- | drivers/ide/setup-pci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index 51b1a9b23a22..f187889de70f 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c | |||
@@ -478,7 +478,6 @@ static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwi | |||
478 | static int ide_setup_pci_controller(struct pci_dev *dev, ide_pci_device_t *d, int noisy, int *config) | 478 | static int ide_setup_pci_controller(struct pci_dev *dev, ide_pci_device_t *d, int noisy, int *config) |
479 | { | 479 | { |
480 | int ret; | 480 | int ret; |
481 | u32 class_rev; | ||
482 | u16 pcicmd; | 481 | u16 pcicmd; |
483 | 482 | ||
484 | if (noisy) | 483 | if (noisy) |
@@ -501,10 +500,9 @@ static int ide_setup_pci_controller(struct pci_dev *dev, ide_pci_device_t *d, in | |||
501 | printk(KERN_INFO "%s: device enabled (Linux)\n", d->name); | 500 | printk(KERN_INFO "%s: device enabled (Linux)\n", d->name); |
502 | } | 501 | } |
503 | 502 | ||
504 | pci_read_config_dword(dev, PCI_CLASS_REVISION, &class_rev); | ||
505 | class_rev &= 0xff; | ||
506 | if (noisy) | 503 | if (noisy) |
507 | printk(KERN_INFO "%s: chipset revision %d\n", d->name, class_rev); | 504 | printk(KERN_INFO "%s: chipset revision %d\n", |
505 | d->name, dev->revision); | ||
508 | out: | 506 | out: |
509 | return ret; | 507 | return ret; |
510 | } | 508 | } |