diff options
author | Ian Abbott <[email protected]> | 2023-09-13 18:07:09 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-10-05 13:34:04 +0200 |
commit | 772dcada0e733a567ad90cca7165c5fef2a1171c (patch) | |
tree | 8f16624b1b7a5b20eecb1ebc722506790cdf6789 /tools/perf/scripts/python/stat-cpi.py | |
parent | 4e1bd6724b854808aa3b94f17f5c27da59a34ff4 (diff) |
comedi: amplc_dio200_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 amplc_dio200_pci module supports various Amplicon PCI and PCI
Express devices. Some of the supported devices (the PCI ones) use port
I/O, and some of them (the PCIe ones) 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.
Add a run-time check in `dio200_pci_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 option 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/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions