diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-25 21:33:30 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-10-11 11:55:33 +0800 |
commit | fac3e796b915226e2dc92363826824be1589c3ef (patch) | |
tree | 857dc3700eedbc299d1caad497e07a2b15947540 /drivers | |
parent | 21b3b66acece160c12166b8bcb5511af5c065cef (diff) | |
download | u-boot-imx-fac3e796b915226e2dc92363826824be1589c3ef.zip u-boot-imx-fac3e796b915226e2dc92363826824be1589c3ef.tar.gz u-boot-imx-fac3e796b915226e2dc92363826824be1589c3ef.tar.bz2 |
x86: i2c: Fix cast of address to 32-bit value
This gives a build warning on 64-bit x86. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/intel_i2c.c | 6 |
1 files changed, 3 insertions, 3 deletions
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. */ |