[U-Boot] [PATCH 27/82] x86: i2c: Fix cast of address to 32-bit value
Heiko Schocher
hs at denx.de
Mon Sep 26 06:33:33 CEST 2016
Hello Simon,
Am 26.09.2016 um 05:33 schrieb Simon Glass:
> This gives a build warning on 64-bit x86. Fix it.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> drivers/i2c/intel_i2c.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Acked-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
>
> diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c
> index a0182dc..550a728 100644
> --- a/drivers/i2c/intel_i2c.c
> +++ b/drivers/i2c/intel_i2c.c
> @@ -248,11 +248,11 @@ static int intel_i2c_set_bus_speed(struct udevice *bus, unsigned int speed)
> static int intel_i2c_probe(struct udevice *dev)
> {
> struct intel_i2c *priv = dev_get_priv(dev);
> - u32 base;
> + ulong base;
>
> /* Save base address from PCI BAR */
> - priv->base = (u32)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_4,
> - PCI_REGION_IO);
> + priv->base = (ulong)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_4,
> + PCI_REGION_IO);
> base = priv->base;
>
> /* Set SMBus enable. */
>
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list