i2c: ocores: convert to ioport_map() for IORESOURCE_IO
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Apr 2024 09:28:36 +0000 (11:28 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Sun, 5 May 2024 22:55:26 +0000 (00:55 +0200)
commit48ace624878d01ed19df2191d5a5e902631e9dd3
treee7a710e577feac705f27eabe7fab9cb1504f888f
parent47c21d2d52e0da05abdae63faa3de65cfb3afb74
i2c: ocores: convert to ioport_map() for IORESOURCE_IO

There is at least one machine that uses this driver but does not
have support for inb()/outb() instructions.

Convert this to using ioport_map() so it can build on architectures
that don't provide these but work correctly on machines that require
using port I/O.

Fixes: 47c21d2d52e0 ("i2c: add HAS_IOPORT dependencies")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/lkml/CAMuHMdVUQ2WgtpYPYfO2T=itMmZ7w=geREqDtsP8Q3ODh9rxdw@mail.gmail.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-ocores.c