mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 05:50:19 +00:00
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>
This commit is contained in:
parent
89e1219004
commit
3abdbf90a3
@ -64,6 +64,11 @@ struct parport_pc_pci {
|
|||||||
|
|
||||||
static int __devinit netmos_parallel_init(struct pci_dev *dev, struct parport_pc_pci *card, int autoirq, int autodma)
|
static int __devinit netmos_parallel_init(struct pci_dev *dev, struct parport_pc_pci *card, int autoirq, int autodma)
|
||||||
{
|
{
|
||||||
|
/* the rule described below doesn't hold for this device */
|
||||||
|
if (dev->device == PCI_DEVICE_ID_NETMOS_9835 &&
|
||||||
|
dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
|
||||||
|
dev->subsystem_device == 0x0299)
|
||||||
|
return -ENODEV;
|
||||||
/*
|
/*
|
||||||
* Netmos uses the subdevice ID to indicate the number of parallel
|
* Netmos uses the subdevice ID to indicate the number of parallel
|
||||||
* and serial ports. The form is 0x00PS, where <P> is the number of
|
* and serial ports. The form is 0x00PS, where <P> is the number of
|
||||||
|
Loading…
Reference in New Issue
Block a user