Commit 7dfc8331 authored by Steven Rostedt's avatar Steven Rostedt Committed by Greg Kroah-Hartman

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 811a37ef
...@@ -3054,7 +3054,7 @@ static int init_mp_dev(struct pci_dev *pcidev, mppcibrd_t brd) ...@@ -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); sbdev->nr_ports = ((portnum_hex/16)*10) + (portnum_hex % 16);
} }
break; break;
#ifdef CONFIG_PARPORT #ifdef CONFIG_PARPORT_PC
case PCI_DEVICE_ID_MP2S1P : case PCI_DEVICE_ID_MP2S1P :
sbdev->nr_ports = 2; sbdev->nr_ports = 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment