mips: io: remove duplicated codes
authorBaoquan He <bhe@redhat.com>
Thu, 21 Sep 2023 11:04:24 +0000 (19:04 +0800)
committerArnd Bergmann <arnd@arndb.de>
Thu, 23 Nov 2023 09:32:53 +0000 (10:32 +0100)
commitaea72963608c733c85b8610f493d074d46c4ae68
tree56a6baae3c462de4a910af4fdcc46af4cd2286b9
parent026246f114d925b2ab97a60e8b4a5506bd035e9c
mips: io: remove duplicated codes

By adding <asm-generic/io.h> support, the duplicated phys_to_virt
can be removed to use the default version in <asm-gneneric/io.h>.

Meanwhile move isa_bus_to_virt() down below <asm-generic/io.h> including
to fix the compiling error of missing phys_to_virt definition.

Signed-off-by: Baoquan He <bhe@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Helge Deller <deller@gmx.de>
Cc: Serge Semin <fancer.lancer@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/mips/include/asm/io.h