]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sh: remove duplicate ioread/iowrite helpers
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Mar 2025 20:42:23 +0000 (21:42 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 11 Mar 2025 09:41:18 +0000 (10:41 +0100)
commit2494fce26e434071a7ce994f3e4e89a310249f3b
treeafa5f205511de22692dffec71d381a620814f809
parent5c35018a54d8a45ea910210a0fcc0ab1af8d770c
sh: remove duplicate ioread/iowrite helpers

The ioread/iowrite functions on sh only do memory mapped I/O like the
generic verion, and never map onto non-MMIO inb/outb variants, so they
just add complexity. In particular, the use of asm-generic/iomap.h
ties the declaration to the x86 implementation.

Remove the custom versions and use the architecture-independent fallback
code instead. Some of the calling conventions on sh are different here,
so fix that by adding 'volatile' keywords where required by the generic
implementation and change the cpg clock driver to no longer depend on
the interesting choice of return types for ioread8/ioread16/ioread32.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/sh/include/asm/io.h
arch/sh/kernel/Makefile
arch/sh/kernel/iomap.c [deleted file]
arch/sh/kernel/ioport.c
arch/sh/lib/io.c
drivers/sh/clk/cpg.c