Skip to content

Commit 96424aa

Browse files
committed
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 <[email protected]>
1 parent fdc482f commit 96424aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/ti-emif-pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ MODULE_DEVICE_TABLE(of, ti_emif_of_match);
248248
static int ti_emif_resume(struct device *dev)
249249
{
250250
unsigned long tmp =
251-
__raw_readl((void *)emif_instance->ti_emif_sram_virt);
251+
__raw_readl((void __iomem *)emif_instance->ti_emif_sram_virt);
252252

253253
/*
254254
* Check to see if what we are copying is already present in the

0 commit comments

Comments
 (0)