]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: gpib: make port I/O code conditional
authorArnd Bergmann <arnd@arndb.de>
Wed, 16 Oct 2024 11:15:18 +0000 (11:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2024 07:57:03 +0000 (09:57 +0200)
commit78ecb0375685bc9276638a5e2b6ec3b10d2810bf
tree1ee1b18270d43cbb963f4e77a52e423bdb9aebe2
parente282c89beab6ed0d77c96e85c50b470091e26e7e
staging: gpib: make port I/O code conditional

A few of the helper modules contain functions for both IORESOURCE_MEM
and IORESOURCE_IO type access, with the latter not being supported
on all architectures but also not used by all the drivers.

Add #ifdef checks around these to allow building the library code
and use it on MMIO-only configurations.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20241016111521.1143191-5-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/common/gpib_os.c
drivers/staging/gpib/nec7210/nec7210.c
drivers/staging/gpib/tms9914/tms9914.c