diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-04-28 07:55:14 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-04-28 07:55:14 +0000 |
commit | 01a26d026ec9d50f1a07e06a502f8bd3475aed28 (patch) | |
tree | f09b647c6efdf3f41753d2ec8a8bb626c02cda02 /sys/dev/pci | |
parent | a6fa973e0b4fd67a126aa05280670f9c622797e1 (diff) |
In rtsx(4), condense the list of support chips in a comment, remove the unused
F_5227 flag, sort PCI IDs, and fix a typo in a comment. No functional change.
from brad
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/rtsx_pci.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/pci/rtsx_pci.c b/sys/dev/pci/rtsx_pci.c index c17517625d9..0f87e63a409 100644 --- a/sys/dev/pci/rtsx_pci.c +++ b/sys/dev/pci/rtsx_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsx_pci.c,v 1.11 2015/03/28 18:07:56 jcs Exp $ */ +/* $OpenBSD: rtsx_pci.c,v 1.12 2015/04/28 07:55:13 stsp Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -48,7 +48,7 @@ rtsx_pci_match(struct device *parent, void *match, void *aux) struct pci_attach_args *pa = aux; /* - * Explicitly match the UNDEFINED device class only. Some RTS5902 + * Explicitly match the UNDEFINED device class only. Some RTS5209 * devices advertise a SYSTEM/SDHC class in addition to the UNDEFINED * device class. Let sdhc(4) handle the SYSTEM/SDHC ones. */ @@ -60,9 +60,9 @@ rtsx_pci_match(struct device *parent, void *match, void *aux) PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5227 || PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5229 || PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5249 || + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8402 || PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8411 || - PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8411B || - PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8402) + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8411B) return 1; return 0; @@ -118,9 +118,6 @@ rtsx_pci_attach(struct device *parent, struct device *self, void *aux) case PCI_PRODUCT_REALTEK_RTS5209: flags = RTSX_F_5209; break; - case PCI_PRODUCT_REALTEK_RTS5227: - flags = RTSX_F_5227; - break; case PCI_PRODUCT_REALTEK_RTS5229: case PCI_PRODUCT_REALTEK_RTS5249: flags = RTSX_F_5229; |