ASoC: pxa: i2s: 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)
commit85c611991255603fef24e374eed3b35175be490b
treec5104aaea548b2eb3803bf80c98452c6704e8468
parent8ff064521f97554cd9bc95af8902485e97131c78
ASoC: pxa: i2s: 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.

Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
sound/soc/pxa/pxa2xx-i2s.c