char: ipmi: handle HAS_IOPORT dependencies
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 4 Apr 2024 10:45:06 +0000 (12:45 +0200)
committerCorey Minyard <minyard@acm.org>
Wed, 17 Apr 2024 19:55:04 +0000 (14:55 -0500)
commitc5c76d800a646e08890cb775efd6037008136b9e
tree2c84c9b5cf16a7e952ee8a6c2f19e7ed8e5d1c26
parenta9b5bb5c2222b90f30c37c6036664b96404ab369
char: ipmi: handle HAS_IOPORT dependencies

In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at
compile time. We thus need to add this dependency and ifdef sections of
code using inb()/outb() as alternative access methods.

Acked-by: Corey Minyard <cminyard@mvista.com>
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>
Message-Id: <20240404104506.3352637-2-schnelle@linux.ibm.com>
Signed-off-by: Corey Minyard <minyard@acm.org>
drivers/char/ipmi/Makefile
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/ipmi/ipmi_si_pci.c