diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-02-24 02:46:56 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2012-02-24 17:35:14 -0500 |
commit | 08803efe849ebe81d1ca5bb5e443415d035087a0 (patch) | |
tree | 3ab6b38e483441bb9ecf8c61b8f94de0ee04d94e /drivers/pci | |
parent | faa738bba5a0fcca93c5818eecbaad63ed2b6948 (diff) |
PCI: Use class for quirk for netmos class fixup
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/quirks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index a86081299633..03e455a1d1a9 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -1878,8 +1878,7 @@ static void __devinit quirk_netmos(struct pci_dev *dev) | |||
1878 | case PCI_DEVICE_ID_NETMOS_9745: | 1878 | case PCI_DEVICE_ID_NETMOS_9745: |
1879 | case PCI_DEVICE_ID_NETMOS_9845: | 1879 | case PCI_DEVICE_ID_NETMOS_9845: |
1880 | case PCI_DEVICE_ID_NETMOS_9855: | 1880 | case PCI_DEVICE_ID_NETMOS_9855: |
1881 | if ((dev->class >> 8) == PCI_CLASS_COMMUNICATION_SERIAL && | 1881 | if (num_parallel) { |
1882 | num_parallel) { | ||
1883 | dev_info(&dev->dev, "Netmos %04x (%u parallel, " | 1882 | dev_info(&dev->dev, "Netmos %04x (%u parallel, " |
1884 | "%u serial); changing class SERIAL to OTHER " | 1883 | "%u serial); changing class SERIAL to OTHER " |
1885 | "(use parport_serial)\n", | 1884 | "(use parport_serial)\n", |
@@ -1889,7 +1888,8 @@ static void __devinit quirk_netmos(struct pci_dev *dev) | |||
1889 | } | 1888 | } |
1890 | } | 1889 | } |
1891 | } | 1890 | } |
1892 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID, quirk_netmos); | 1891 | DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID, |
1892 | PCI_CLASS_COMMUNICATION_SERIAL, 8, quirk_netmos); | ||
1893 | 1893 | ||
1894 | static void __devinit quirk_e100_interrupt(struct pci_dev *dev) | 1894 | static void __devinit quirk_e100_interrupt(struct pci_dev *dev) |
1895 | { | 1895 | { |