Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

parport: parport_serial, don't bind netmos ibm 0299

Since netmos 9835 with subids 0x1014(IBM):0x0299 is now bound with
serial/8250_pci, because it has no parallel ports and subdevice id isn't
in the expected form, return -ENODEV from probe function.

This is performed in netmos preinit_hook.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jiri Slaby and committed by
Linus Torvalds
3abdbf90 89e12190

+5
+5
drivers/parport/parport_serial.c
··· 64 64 65 65 static int __devinit netmos_parallel_init(struct pci_dev *dev, struct parport_pc_pci *card, int autoirq, int autodma) 66 66 { 67 + /* the rule described below doesn't hold for this device */ 68 + if (dev->device == PCI_DEVICE_ID_NETMOS_9835 && 69 + dev->subsystem_vendor == PCI_VENDOR_ID_IBM && 70 + dev->subsystem_device == 0x0299) 71 + return -ENODEV; 67 72 /* 68 73 * Netmos uses the subdevice ID to indicate the number of parallel 69 74 * and serial ports. The form is 0x00PS, where <P> is the number of