mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
staging/sb105x: PARPORT config is not good enough must use PARPORT_PC
The sb105x driver calls parport_pc_probe_port() which isn't defined if PARPORT_PC isn't enabled. Protecting it with CONFIG_PARPORT is not good enough, must protect it with CONFIG_PARPORT_PC. Reported-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
811a37effd
commit
7dfc833178
1 changed files with 1 additions and 1 deletions
|
@ -3054,7 +3054,7 @@ static int init_mp_dev(struct pci_dev *pcidev, mppcibrd_t brd)
|
|||
sbdev->nr_ports = ((portnum_hex/16)*10) + (portnum_hex % 16);
|
||||
}
|
||||
break;
|
||||
#ifdef CONFIG_PARPORT
|
||||
#ifdef CONFIG_PARPORT_PC
|
||||
case PCI_DEVICE_ID_MP2S1P :
|
||||
sbdev->nr_ports = 2;
|
||||
|
||||
|
|
Loading…
Reference in a new issue