mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
06e07f65c7
commit
ef2d17fe21
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue