mtd: brcmnand: Fix pointer type-cast in brcmnand_write()
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 <fb61748fec7a117698efa5f25a4808e4181391f0@broadcom.com>
Reviewed-by: Vikram Prakash <e4d0ad494bd28a1e0f0a0e668b64809601b3f48c@broadcom.com>
Reviewed-by: Ray Jui <16d3e9966b27c799b428e2cfa6c1218c3b78fa9c@broadcom.com>
Reviewed-by: Scott Branden <48d073636e1f493abad20c1186acd226fa8d5b1d@broadcom.com>
Signed-off-by: Brian Norris <ac73eed4b8a8c9127255a2696c52b2e7503720b8@gmail.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs