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: PC style parport depends on HAS_IOPORT

In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. As PC style parport uses these functions we need to
handle this dependency.

Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20230522105049.1467313-24-schnelle@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Niklas Schnelle and committed by
Greg Kroah-Hartman
ce3e8ec0 14360031

+3 -2
+2 -1
drivers/parport/Kconfig
··· 42 42 43 43 config PARPORT_PC 44 44 tristate "PC-style hardware" 45 - depends on ARCH_MIGHT_HAVE_PC_PARPORT || (PCI && !S390) 45 + depends on ARCH_MIGHT_HAVE_PC_PARPORT || PCI 46 + depends on HAS_IOPORT 46 47 help 47 48 You should say Y here if you have a PC-style parallel port. All 48 49 IBM PC compatible computers and some Alphas have PC-style
+1 -1
include/linux/parport.h
··· 514 514 extern int parport_device_proc_unregister(struct pardevice *device); 515 515 516 516 /* If PC hardware is the only type supported, we can optimise a bit. */ 517 - #if !defined(CONFIG_PARPORT_NOT_PC) 517 + #if !defined(CONFIG_PARPORT_NOT_PC) && defined(CONFIG_PARPORT_PC) 518 518 519 519 #include <linux/parport_pc.h> 520 520 #define parport_write_data(p,x) parport_pc_write_data(p,x)