]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: slram: use memremap() instead of ioremap()
authorRoy Franz <rfranz@cavium.com>
Thu, 19 Oct 2017 22:55:49 +0000 (15:55 -0700)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Nov 2017 20:39:16 +0000 (21:39 +0100)
commitcb9e20633d81290acefb9ec1af281ff4c650fbde
tree7fa6d1f0f5f64c212be41d7a280f9cc264469fe2
parent9de8da47742b22ddec872a4dff5bd7caec98e5ba
mtd: slram: use memremap() instead of ioremap()

Convert slram to use memremap() to map the memory it uses to back an MTD
device, as this is the proper interface for mapping memory. This change
enables normal memory to be used to back an MTD device on arm64, as arm64
prevents ioremap() being used on normal memory.

Signed-off-by: Roy Franz <roy.franz@cavium.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: David Daney <david.daney@cavium.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/devices/slram.c