mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
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>
This commit is contained in:
parent
25503443ee
commit
c2a4cb17b4
1 changed files with 1 additions and 1 deletions
|
@ -936,7 +936,7 @@ static int fsl_qspi_probe(struct udevice *bus)
|
|||
|
||||
dm_spi_bus->max_hz = plat->speed_hz;
|
||||
|
||||
priv->regs = (struct fsl_qspi_regs *)plat->reg_base;
|
||||
priv->regs = (struct fsl_qspi_regs *)(uintptr_t)plat->reg_base;
|
||||
priv->flags = plat->flags;
|
||||
|
||||
priv->speed_hz = plat->speed_hz;
|
||||
|
|
Loading…
Reference in a new issue