spi: fsl_qspi: fix compile warning for 64-bit platform
authorGong Qianyu <Qianyu.Gong@freescale.com>
Tue, 26 Jan 2016 07:06:39 +0000 (15:06 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 27 Jan 2016 16:27:49 +0000 (08:27 -0800)
commitc2a4cb17b4ff194e905df76b9f7c1b5a00b99b25
tree665280a589dd27efddc6fc27ea644cac2b289d2e
parent25503443eee0c539e3d566d5aa59410562599f18
spi: fsl_qspi: fix compile warning for 64-bit platform

This patch fixes the following compile warning:
drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe':
drivers/spi/fsl_qspi.c:937:15:
  warning: cast to pointer from integer of different size
 [-Wint-to-pointer-cast]
  priv->regs = (struct fsl_qspi_regs *)plat->reg_base;
               ^
Just make the cast explicit.

Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/spi/fsl_qspi.c