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)
commitcc53d5ca38c02e05efd20ba8af1759d1005aa454
tree8d927d2d64bf33711225f3c78c6d91a03f8b1eac
parentc5b76d8dd2bf318d9e6b4b3a480b9e96c01b31c8
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