ASoC: pxa: ac97: use normal MMIO accessors
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Sep 2019 08:52:31 +0000 (10:52 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 7 May 2022 20:55:49 +0000 (22:55 +0200)
commit8ff064521f97554cd9bc95af8902485e97131c78
treeb0656512e6080242a0f9371ed057cd6e5c46e7bc
parent4d2dba6b6e7b697bba7e8167ab8b0ac8b3df492c
ASoC: pxa: ac97: use normal MMIO accessors

To avoid dereferencing hardwired constant pointers from a global header
file, change the driver to use devm_platform_ioremap_resource for getting
an __iomem pointer, and then using readl/writel on that.

Each pointer dereference gets changed by a search&replace, which leads
to a few overlong lines, but seems less risky than trying to clean up
the code at the same time.

Cc: alsa-devel@alsa-project.org
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
sound/arm/pxa2xx-ac97-lib.c
sound/arm/pxa2xx-ac97-regs.h [moved from arch/arm/mach-pxa/include/mach/regs-ac97.h with 71% similarity]
sound/arm/pxa2xx-ac97.c