summaryrefslogtreecommitdiffstats
path: root/drivers/memory
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-07-24 09:40:24 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2020-07-24 16:18:32 +0200
commit96424aa976bf8254ced65812e3bd081a7e25caa2 (patch)
treeb72283cbc70ab9383ffa07e16898fea9ae815c95 /drivers/memory
parentmemory: ti-aemif: Rename SS to SSTROBE to avoid name conflicts (diff)
downloadlinux-96424aa976bf8254ced65812e3bd081a7e25caa2.tar.xz
linux-96424aa976bf8254ced65812e3bd081a7e25caa2.zip
memory: ti-emif-pm: Fix cast to iomem pointer
Cast pointer to iomem memory properly to fix sparse warning: drivers/memory/ti-emif-pm.c:251:38: warning: incorrect type in argument 1 (different address spaces) drivers/memory/ti-emif-pm.c:251:38: expected void const volatile [noderef] __iomem *addr drivers/memory/ti-emif-pm.c:251:38: got void * Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/memory')
-rw-r--r--drivers/memory/ti-emif-pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memory/ti-emif-pm.c b/drivers/memory/ti-emif-pm.c
index 9c90f815ad3a..6c747c1e98cb 100644
--- a/drivers/memory/ti-emif-pm.c
+++ b/drivers/memory/ti-emif-pm.c
@@ -248,7 +248,7 @@ MODULE_DEVICE_TABLE(of, ti_emif_of_match);
static int ti_emif_resume(struct device *dev)
{
unsigned long tmp =
- __raw_readl((void *)emif_instance->ti_emif_sram_virt);
+ __raw_readl((void __iomem *)emif_instance->ti_emif_sram_virt);
/*
* Check to see if what we are copying is already present in the