Commit 96424aa9 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

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: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent fdc482ff
...@@ -248,7 +248,7 @@ MODULE_DEVICE_TABLE(of, ti_emif_of_match); ...@@ -248,7 +248,7 @@ MODULE_DEVICE_TABLE(of, ti_emif_of_match);
static int ti_emif_resume(struct device *dev) static int ti_emif_resume(struct device *dev)
{ {
unsigned long tmp = 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 * Check to see if what we are copying is already present in the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment