In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. We thus need to add HAS_IOPORT as dependency for
those drivers using them.
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-16-schnelle@linux.ibm.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
 
 config SERIO_PCIPS2
        tristate "PCI PS/2 keyboard and PS/2 mouse controller"
        depends on PCI
+       depends on HAS_IOPORT
        help
          Say Y here if you have a Mobility Docking station with PS/2
          keyboard and mice ports.
 
 
 config TOUCHSCREEN_MK712
        tristate "ICS MicroClock MK712 touchscreen"
+       depends on ISA
        help
          Say Y here if you have the ICS MicroClock MK712 touchscreen
          controller chip in your system.