]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
firmware: dmi-sysfs: handle HAS_IOPORT=n
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 22 May 2023 10:50:15 +0000 (12:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 May 2023 18:17:29 +0000 (19:17 +0100)
commite7f3dd801ecfa9eeb936133122dcecd433f76c4d
tree34afbb41f23c06a09bead09bea825de40ffa3c4b
parent67d91a1e310afa9cbe1bb61169a2d3b8ca40ba67
firmware: dmi-sysfs: handle HAS_IOPORT=n

In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. We thus need to guard sections of code calling them
as alternative access methods.

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-11-schnelle@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/dmi-sysfs.c