projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d333fc8
)
hpt3x2n: Correct revision boundary
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Mon, 21 May 2007 13:57:01 +0000
(14:57 +0100)
committer
Jeff Garzik
<jeff@garzik.org>
Fri, 25 May 2007 00:34:47 +0000
(20:34 -0400)
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>
drivers/ata/pata_hpt3x2n.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_hpt3x2n.c
b/drivers/ata/pata_hpt3x2n.c
index f25154aed75dbd9aab82df2bac041a71c16fecfd..e947433cb37dd3177b902557aad23ea7d52686f8 100644
(file)
--- 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: