Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 824cf333 authored by Alan Cox's avatar Alan Cox Committed by Jeff Garzik
Browse files

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: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent d333fc8d
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -521,8 +521,8 @@ static int hpt3x2n_init_one(struct pci_dev *dev, const struct pci_device_id *id)
			/* 371N if rev > 1 */
			/* 371N if rev > 1 */
			break;
			break;
		case PCI_DEVICE_ID_TTI_HPT372:
		case PCI_DEVICE_ID_TTI_HPT372:
			/* 372N if rev >= 1*/
			/* 372N if rev >= 2*/
			if (class_rev == 0)
			if (class_rev < 2)
				return -ENODEV;
				return -ENODEV;
			break;
			break;
		case PCI_DEVICE_ID_TTI_HPT302:
		case PCI_DEVICE_ID_TTI_HPT302: