mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
14360031f8
commit
ce3e8ec08d
@@ -514,7 +514,7 @@ extern int parport_device_proc_register(struct pardevice *device);
|
||||
extern int parport_device_proc_unregister(struct pardevice *device);
|
||||
|
||||
/* If PC hardware is the only type supported, we can optimise a bit. */
|
||||
#if !defined(CONFIG_PARPORT_NOT_PC)
|
||||
#if !defined(CONFIG_PARPORT_NOT_PC) && defined(CONFIG_PARPORT_PC)
|
||||
|
||||
#include <linux/parport_pc.h>
|
||||
#define parport_write_data(p,x) parport_pc_write_data(p,x)
|
||||
|
||||
Reference in New Issue
Block a user