diff options
author | Niklas Schnelle <schnelle@linux.ibm.com> | 2023-05-22 13:50:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-31 21:17:40 +0300 |
commit | ce3e8ec08dacba16292e1c6948f2983d1d3f1eea (patch) | |
tree | f47f4c76739fcfe48e9c7e810567b229f0b56d99 /include | |
parent | 14360031f804b17c1707c316475db42c84853cf1 (diff) | |
download | linux-ce3e8ec08dacba16292e1c6948f2983d1d3f1eea.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/parport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/parport.h b/include/linux/parport.h index a0bc9e0267b7..fff39bc30629 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -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) |