Skip to content
Snippets Groups Projects
Commit ef2d17fe authored by Minghuan Lian's avatar Minghuan Lian Committed by Tom Rini
Browse files

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: default avatarMinghuan Lian <Minghuan.Lian@freescale.com>
parent 06e07f65
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ static int pci_rom_probe(pci_dev_t dev, uint class, ...@@ -98,7 +98,7 @@ static int pci_rom_probe(pci_dev_t dev, uint class,
rom_address | PCI_ROM_ADDRESS_ENABLE); rom_address | PCI_ROM_ADDRESS_ENABLE);
#endif #endif
debug("Option ROM address %x\n", rom_address); 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", debug("PCI expansion ROM, signature %#04x, INIT size %#04x, data ptr %#04x\n",
le16_to_cpu(rom_header->signature), le16_to_cpu(rom_header->signature),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment