summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMinghuan Lian <Minghuan.Lian@freescale.com>2015-01-22 13:21:55 +0800
committerTom Rini <trini@ti.com>2015-01-30 09:19:16 -0500
commitef2d17fe21c54adf9f24ee0b32db4ebb56f4eb83 (patch)
tree1db66cd386cf045f18dddae530c8a99a068dcc92 /drivers
parent06e07f65c7bf5449f2417d8ff08de88bf8c4b8a7 (diff)
downloadu-boot-imx-ef2d17fe21c54adf9f24ee0b32db4ebb56f4eb83.zip
u-boot-imx-ef2d17fe21c54adf9f24ee0b32db4ebb56f4eb83.tar.gz
u-boot-imx-ef2d17fe21c54adf9f24ee0b32db4ebb56f4eb83.tar.bz2
drivers/pci/pci_rom.c: fix compile warning under 64bit mode
Fix this: drivers/pci/pci_rom.c:95:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] rom_header = (struct pci_rom_header *)rom_address; Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pci_rom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index eb76591..5729a15 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -98,7 +98,7 @@ static int pci_rom_probe(pci_dev_t dev, uint class,
rom_address | PCI_ROM_ADDRESS_ENABLE);
#endif
debug("Option ROM address %x\n", rom_address);
- rom_header = (struct pci_rom_header *)rom_address;
+ rom_header = (struct pci_rom_header *)(unsigned long)rom_address;
debug("PCI expansion ROM, signature %#04x, INIT size %#04x, data ptr %#04x\n",
le16_to_cpu(rom_header->signature),