diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-02-11 16:04:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-02-11 17:25:37 -0500 |
commit | 3abdbf90a3ffb006108c831c56b092e35483b6ec (patch) | |
tree | 29e9dc845e2834d73b337bbd539df1c5231f8104 | |
parent | 89e1219004b3657cc014521663eeef0744f1c99d (diff) |
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>
-rw-r--r-- | drivers/parport/parport_serial.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c index 101ed49a2d15..032db815b0f9 100644 --- a/drivers/parport/parport_serial.c +++ b/drivers/parport/parport_serial.c | |||
@@ -64,6 +64,11 @@ struct parport_pc_pci { | |||
64 | 64 | ||
65 | static int __devinit netmos_parallel_init(struct pci_dev *dev, struct parport_pc_pci *card, int autoirq, int autodma) | 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 | * Netmos uses the subdevice ID to indicate the number of parallel | 73 | * Netmos uses the subdevice ID to indicate the number of parallel |
69 | * and serial ports. The form is 0x00PS, where <P> is the number of | 74 | * and serial ports. The form is 0x00PS, where <P> is the number of |