]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: davinci: Use uintptr_t casts instead of unsigned ones
authorBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 9 Jul 2018 20:09:29 +0000 (22:09 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 08:10:17 +0000 (10:10 +0200)
commit502306282bcff19ef9e1fe38a8ab169908ae9451
tree8d927d2d64bf33711225f3c78c6d91a03f8b1eac
parent3ba85da88b29bf664f152d6e8e59528f4d9ec84f
mtd: rawnand: davinci: Use uintptr_t casts instead of unsigned ones

uintptr_t should be used when casting a pointer to an unsigned int so
that the code compiles without warnings even on 64-bit architectures.

This is needed if we want to allow selection of this driver when
COMPILE_TEST=y.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/davinci_nand.c