Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d28395c9 authored by Boris Brezillon's avatar Boris Brezillon Committed by Miquel Raynal
Browse files

mtd: rawnand: atmel: Add an __iomem cast on gen_pool_dma_alloc() call



gen_pool_dma_alloc() return type is void *, while internally, the
memory region exposed by the sram driver has been mapped with
ioremap().

Add a void * to void __iomem * cast to make sparse happy.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent e6848511
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2219,7 +2219,7 @@ atmel_hsmc_nand_controller_init(struct atmel_hsmc_nand_controller *nc)
		return -ENOMEM;
	}

	nc->sram.virt = gen_pool_dma_alloc(nc->sram.pool,
	nc->sram.virt = (void __iomem *)gen_pool_dma_alloc(nc->sram.pool,
							   ATMEL_NFC_SRAM_SIZE,
							   &nc->sram.dma);
	if (!nc->sram.virt) {