]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: qcom: stop using phys_to_dma()
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Jul 2018 20:27:42 +0000 (22:27 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 Jul 2018 21:14:13 +0000 (23:14 +0200)
commitf6d9daa2ec371496342ce758f5cc6f8fdab067fc
treea82c6e9291af84d27268f91b48237e800c968d8f
parent5764a8f74f25b7eee1b4adfe863e9de48be7c5f6
mtd: rawnand: qcom: stop using phys_to_dma()

Compile-testing this driver on x86 caused a link error:

ERROR: "__phys_to_dma" [drivers/mtd/nand/raw/qcom_nandc.ko] undefined!

The problem here is that the driver attempts to convert the physical
address into the DMA controller as a dma_addr_t and calls phys_to_dma()
to do the conversion.

The correct way to do the conversion is using the dma mapping interfaces.

Fixes: f0c67ab07eb4 ("mtd: nand: Qualcomm NAND controller driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/qcom_nandc.c