mtd: brcmnand: Fix pointer type-cast in brcmnand_write()
authorAnup Patel <anup.patel@broadcom.com>
Fri, 2 Oct 2015 17:56:42 +0000 (23:26 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 12 Oct 2015 21:17:30 +0000 (14:17 -0700)
commit3f08b8ba9f5d7ec528a9fc293e76a14c2851e403
tree51213ed003742c50fe6224df0c6d480146ddd392
parent06968a54790d9dd87a5bb68e8197b5094eff63c3
mtd: brcmnand: Fix pointer type-cast in brcmnand_write()

We should always type-cast pointer to "long" or "unsigned long"
because size of pointer is same as machine word size. This will
avoid pointer type-cast issues on both 32bit and 64bit systems.

This patch fixes pointer type-cast issue in brcmnand_write()
as-per above info.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Vikram Prakash <vikramp@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/brcmnand/brcmnand.c