counter: add HAS_IOPORT_MAP dependency
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 22 May 2023 10:50:12 +0000 (12:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 May 2023 18:17:29 +0000 (19:17 +0100)
commit67d91a1e310afa9cbe1bb61169a2d3b8ca40ba67
tree6f59f37c99701cfa771b5f11f857d6f97c727779
parentb5c75b68b7ded84d4c82118974ce3975a4dcaa74
counter: add HAS_IOPORT_MAP dependency

The 104_QUAD_8 counter driver uses devm_ioport_map() without depending
on HAS_IOPORT_MAP. This means the driver is not usable on platforms such
as s390 which do not support I/O port mapping. Add the missing
HAS_IOPORT_MAP dependency to make this explicit.

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-8-schnelle@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/counter/Kconfig