summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_hpt3x2n.c
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2007-05-21 15:57:01 +0200
committerJeff Garzik <jeff@garzik.org>2007-05-25 02:34:47 +0200
commit824cf333db97954d6144230b5e28f4e65e67d312 (patch)
tree8588ccea0583b06f3e8f03d7a541ffaa3a7d418d /drivers/ata/pata_hpt3x2n.c
parentMerge branch 'fixes' of git://git.linux-nfs.org/pub/linux/nfs-2.6 (diff)
downloadlinux-824cf333db97954d6144230b5e28f4e65e67d312.tar.xz
linux-824cf333db97954d6144230b5e28f4e65e67d312.zip
hpt3x2n: Correct revision boundary
We have a revision that isn't correctly claimed as two drivers both go for it: Fix the test accordingly. Noticed originally by Bill Nottingham. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_hpt3x2n.c')
-rw-r--r--drivers/ata/pata_hpt3x2n.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_hpt3x2n.c b/drivers/ata/pata_hpt3x2n.c
index f25154aed75d..e947433cb37d 100644
--- a/drivers/ata/pata_hpt3x2n.c
+++ b/drivers/ata/pata_hpt3x2n.c
@@ -521,8 +521,8 @@ static int hpt3x2n_init_one(struct pci_dev *dev, const struct pci_device_id *id)
/* 371N if rev > 1 */
break;
case PCI_DEVICE_ID_TTI_HPT372:
- /* 372N if rev >= 1*/
- if (class_rev == 0)
+ /* 372N if rev >= 2*/
+ if (class_rev < 2)
return -ENODEV;
break;
case PCI_DEVICE_ID_TTI_HPT302: