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>
This commit is contained in:
Родитель
faa738bba5
Коммит
08803efe84
|
@ -1878,8 +1878,7 @@ static void __devinit quirk_netmos(struct pci_dev *dev)
|
||||||
case PCI_DEVICE_ID_NETMOS_9745:
|
case PCI_DEVICE_ID_NETMOS_9745:
|
||||||
case PCI_DEVICE_ID_NETMOS_9845:
|
case PCI_DEVICE_ID_NETMOS_9845:
|
||||||
case PCI_DEVICE_ID_NETMOS_9855:
|
case PCI_DEVICE_ID_NETMOS_9855:
|
||||||
if ((dev->class >> 8) == PCI_CLASS_COMMUNICATION_SERIAL &&
|
if (num_parallel) {
|
||||||
num_parallel) {
|
|
||||||
dev_info(&dev->dev, "Netmos %04x (%u parallel, "
|
dev_info(&dev->dev, "Netmos %04x (%u parallel, "
|
||||||
"%u serial); changing class SERIAL to OTHER "
|
"%u serial); changing class SERIAL to OTHER "
|
||||||
"(use parport_serial)\n",
|
"(use parport_serial)\n",
|
||||||
|
@ -1889,7 +1888,8 @@ static void __devinit quirk_netmos(struct pci_dev *dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID, quirk_netmos);
|
DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID,
|
||||||
|
PCI_CLASS_COMMUNICATION_SERIAL, 8, quirk_netmos);
|
||||||
|
|
||||||
static void __devinit quirk_e100_interrupt(struct pci_dev *dev)
|
static void __devinit quirk_e100_interrupt(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче