Skip to content

Commit c54111a

Browse files
committed
Merge remote-tracking branch 'remotes/origin/at91-4.14-trunk/base_nand' into linux-4.14-at91
2 parents f902d04 + 83bbfe5 commit c54111a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/mtd/nand/atmel/nand-controller.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,7 @@ atmel_smc_nand_controller_init(struct atmel_smc_nand_controller *nc)
20422042
return ret;
20432043
}
20442044

2045-
nc->ebi_csa_offs = (unsigned int)match->data;
2045+
nc->ebi_csa_offs = (uintptr_t)match->data;
20462046

20472047
/*
20482048
* The at91sam9263 has 2 EBIs, if the NAND controller is under EBI1
@@ -2211,9 +2211,9 @@ atmel_hsmc_nand_controller_init(struct atmel_hsmc_nand_controller *nc)
22112211
return -ENOMEM;
22122212
}
22132213

2214-
nc->sram.virt = gen_pool_dma_alloc(nc->sram.pool,
2215-
ATMEL_NFC_SRAM_SIZE,
2216-
&nc->sram.dma);
2214+
nc->sram.virt = (void __iomem *)gen_pool_dma_alloc(nc->sram.pool,
2215+
ATMEL_NFC_SRAM_SIZE,
2216+
&nc->sram.dma);
22172217
if (!nc->sram.virt) {
22182218
dev_err(nc->base.dev,
22192219
"Could not allocate memory from the NFC SRAM pool\n");

0 commit comments

Comments
 (0)