diff options
author | Ian Abbott <[email protected]> | 2023-09-13 18:07:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-10-05 13:34:04 +0200 |
commit | 0ccb86a690c52d047b6cafa0f7f99805bf6eeb4e (patch) | |
tree | 4a98281813a583d13e38cb2c5b3e0a9dcd4b5e79 /tools/perf/scripts/python/syscall-counts.py | |
parent | 90d256757e0bffd7a9beafd7c2bdc40a0236f9ec (diff) |
comedi: 8255_pci: Conditionally remove devices that use port I/O
In a future patch, the port I/O functions (`inb()`, `outb()`, and
friends will only be declared in the `HAS_IOPORT` configuration option
is enabled.
The 8255_pci module supports PCI digital I/O devices from various
manufacturers that consist of one or more 8255 Programmable Peripheral
Interface chips (or equivalent hardware) to provide their digital I/O
ports. Some of the devices use port I/O and some only use memory-mapped
I/O.
Conditionally compile in support for the devices that need port I/O if
and only if the `CONFIG_HAS_IOPORT` macro is defined. Change
`pci_8255_auto_attach()` to return an error if the device actually
requires port I/O (based on the PCI BAR resource flags) but the
`HAS_IOPORT` configuration is not enabled.
Cc: Arnd Bergmann <[email protected]>
Cc: Niklas Schnelle <[email protected]>
Signed-off-by: Ian Abbott <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions