[U-Boot] [Patch V7 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform
york sun
york.sun at nxp.com
Wed Jan 27 18:15:10 CET 2016
On 01/25/2016 11:15 PM, Gong Qianyu wrote:
> From: Gong Qianyu <Qianyu.Gong at freescale.com>
>
> 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 at freescale.com>
> ---
> V6-V7:
> - No change.
> V5:
> - Use uintptr_t instead of unsigned long.
> V4:
> - Revise the commit message.
> V2-V3:
> - No change.
>
> drivers/spi/fsl_qspi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-fsl-qoriq master. Awaiting upstream.
Thanks.
York
More information about the U-Boot
mailing list